summaryrefslogtreecommitdiff
path: root/lib/api/api.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-04-15 19:37:21 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-04-28 22:28:36 +0530
commite8314ccca5ff1cd9cf2b1d1aeccd699598b384a5 (patch)
treecef8d640af41964218bf843a46b31bc5c39bf516 /lib/api/api.rb
parent3a609038748055a27c7e01cf4b55d8249709c9cc (diff)
downloadgitlab-ce-e8314ccca5ff1cd9cf2b1d1aeccd699598b384a5.tar.gz
Refactor `API::Helpers` into `API::Helpers::Core` and `API::Helpers::Authentication`
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r--lib/api/api.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb
index cc1004f8005..537678863cb 100644
--- a/lib/api/api.rb
+++ b/lib/api/api.rb
@@ -1,4 +1,5 @@
Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file}
+Dir["#{Rails.root}/lib/api/helpers/*.rb"].each {|file| require file}
module API
class API < Grape::API
@@ -25,7 +26,8 @@ module API
format :json
content_type :txt, "text/plain"
- helpers Helpers
+ helpers Helpers::Core
+ helpers Helpers::Authentication
mount Groups
mount GroupMembers