Skip to content

Instantly share code, notes, and snippets.

@aishek
Created September 29, 2014 10:21
Show Gist options
  • Save aishek/650ad4193ab0bd60da27 to your computer and use it in GitHub Desktop.
Save aishek/650ad4193ab0bd60da27 to your computer and use it in GitHub Desktop.
grape api Api class usage example
# app/controllers/api.rb
class Api < Grape::API
mount ::Api::V1
end
# config/routes.rb
App::Application.routes.draw do
mount Api => '/api'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment