You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
227 B

  1. class Api::V1::AppsController < ApplicationController
  2. respond_to :json
  3. def create
  4. @app = Doorkeeper::Application.create!(app_params)
  5. end
  6. private
  7. def app_params
  8. params.permit(:name, :redirect_uri)
  9. end
  10. end