registration API
This commit is contained in:
parent
210362e665
commit
7e14eefc81
27 changed files with 216 additions and 136 deletions
13
app/controllers/api/apps_controller.rb
Normal file
13
app/controllers/api/apps_controller.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
class Api::AppsController < ApplicationController
|
||||
respond_to :json
|
||||
|
||||
def create
|
||||
@app = Doorkeeper::Application.create!(app_params)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def app_params
|
||||
params.permit(:name, :redirect_uri)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue