houdini/gems/grape_devise/spec/dummy/app/api/api.rb
2019-08-02 19:07:29 +02:00

20 lines
256 B
Ruby

# frozen_string_literal: true
require 'grape_devise'
class API < Grape::API
format :json
get 'me' do
authenticate_user!
current_user
end
get 'authorized' do
user_signed_in?
end
post 'signin' do
authenticate_user!
end
end