1
0
Fork 0
forked from gitea/nas

Replace logo, fix #57 - delete/unreblog/unfavourite API, fix #45 - app

registration API
This commit is contained in:
Eugen Rochko 2016-09-26 23:55:21 +02:00
parent 210362e665
commit 7e14eefc81
27 changed files with 216 additions and 136 deletions

View 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