Skip to content

Instantly share code, notes, and snippets.

@faustoct
Last active Jul 22, 2019
Embed
What would you like to do?
filter before quest
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