diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-30 00:03:08 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-30 00:03:08 +0200 |
commit | 62b057b085ea7ff20765731d64a79e38f19174d4 (patch) | |
tree | 0ecce9bf046e939e561b8c3903b763e87e12c544 /app/controllers/api | |
parent | ef2b50c9acf8bdc2119bfe3d8fe127d92f32c0a7 (diff) |
Adjust client registration API
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/apps_controller.rb | 8 |
1 files changed, 1 insertions, 7 deletions
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 |