From 62b057b085ea7ff20765731d64a79e38f19174d4 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 30 Sep 2016 00:03:08 +0200 Subject: Adjust client registration API --- app/controllers/api/v1/apps_controller.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/api/v1/apps_controller.rb b/app/controllers/api/v1/apps_controller.rb index f0822b83f..a09c29cc6 100644 --- a/app/controllers/api/v1/apps_controller.rb +++ b/app/controllers/api/v1/apps_controller.rb @@ -2,12 +2,6 @@ class Api::V1::AppsController < ApiController respond_to :json def create - @app = Doorkeeper::Application.create!(app_params) - end - - private - - def app_params - params.permit(:name, :redirect_uri) + @app = Doorkeeper::Application.create!(name: params[:client_name], redirect_uri: params[:redirect_uris]) end end -- cgit