Skip to content

Instantly share code, notes, and snippets.

@alexandru-calinoiu
Last active December 25, 2015 03:49
Show Gist options
  • Save alexandru-calinoiu/6912980 to your computer and use it in GitHub Desktop.
Save alexandru-calinoiu/6912980 to your computer and use it in GitHub Desktop.
Grape api end point
module Apibugfreak
class Resources::V1::ErrorsAPI < Grape::API
resources :errors do
desc 'Create a error'
post do
authenticate!
ApplicationErrorService.new(@current_application).create_application_error(params)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment