diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-21 14:59:13 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-21 14:59:13 +0100 |
commit | e8c27767aab0bf6c26d28944268a78fb5ac5d4e0 (patch) | |
tree | 1bbb416eb7736a43dd94ef0b64545a198567f4c1 /app/controllers/api | |
parent | 954f344cf7cba40a9d6493d2a76f5637beee2e6a (diff) |
Remove orphaned notifications, add scopes param to app create API
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/apps_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/apps_controller.rb b/app/controllers/api/v1/apps_controller.rb index d1db16cf2..fb95928a8 100644 --- a/app/controllers/api/v1/apps_controller.rb +++ b/app/controllers/api/v1/apps_controller.rb @@ -4,6 +4,6 @@ class Api::V1::AppsController < ApiController respond_to :json def create - @app = Doorkeeper::Application.create!(name: params[:client_name], redirect_uri: params[:redirect_uris]) + @app = Doorkeeper::Application.create!(name: params[:client_name], redirect_uri: params[:redirect_uris], scopes: params[:scopes]) end end |