diff options
Diffstat (limited to 'lib/api.rb')
-rw-r--r-- | lib/api.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/api.rb b/lib/api.rb deleted file mode 100644 index d9dce7c70cc..00000000000 --- a/lib/api.rb +++ /dev/null @@ -1,25 +0,0 @@ -Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file} - -module Gitlab - class API < Grape::API - version 'v3', using: :path - - rescue_from ActiveRecord::RecordNotFound do - rack_response({'message' => '404 Not found'}.to_json, 404) - end - - format :json - error_format :json - helpers APIHelpers - - mount Groups - mount Users - mount Projects - mount Issues - mount Milestones - mount Session - mount MergeRequests - mount Notes - mount Internal - end -end |