houdini/gems/grape_devise/spec/dummy/app/api/api.rb

18 lines
224 B
Ruby
Raw Normal View History

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