Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[api] added owners resource to frontend-webui API
  • Loading branch information
ancorgs authored and coolo committed Jul 29, 2013
1 parent 80ff9ea commit c206b9a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/api/app/controllers/webui/base_controller.rb
@@ -1,6 +1,3 @@
#require 'json/ext'
#include SearchHelper

class Webui::BaseController < ApplicationController
skip_filter :validate_params
end
13 changes: 13 additions & 0 deletions src/api/app/controllers/webui/owners_controller.rb
@@ -0,0 +1,13 @@
include SearchHelper

class Webui::OwnersController < Webui::BaseController

def index
required_parameters :binary

Suse::Backend.start_test_backend if Rails.env.test?

@owners = search_owner(params, params[:binary])
end

end
File renamed without changes.
1 change: 1 addition & 0 deletions src/api/config/routes.rb
Expand Up @@ -321,6 +321,7 @@
get :by_class
end
end
resources :owners, :only => [:index]
end

get "/404" => "main#notfound"
Expand Down

0 comments on commit c206b9a

Please sign in to comment.