Last active
July 22, 2019 01:00
-
-
Save faustoct1/c6f51da60c1543b555f7ed41e489642d to your computer and use it in GitHub Desktop.
filter before quest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App::Api.controllers do | |
before do | |
auth_user | |
end | |
get '/me' | |
{id:@user[:id],name:@user[:name],username:@user[:username]}.to_json | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment