diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-01-16 17:52:52 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-01-19 21:58:06 -0300 |
commit | 81dd626b9b09550983e7c3ba4aba1420e870e49b (patch) | |
tree | 11f8cdc10ca1026b78b449a8fbff9145153fbc4d /lib | |
parent | cf1f7e89c9d948a96a1c637183a1c1f076fda27c (diff) | |
download | gitlab-ce-gitaly-api.tar.gz |
Add internal API endpoint to share Gitaly's paths with other componentsgitaly-api
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/internal.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index d235977fbd8..6fa71e338ee 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -132,6 +132,12 @@ module API { success: true, recovery_codes: codes } end + + get '/gitaly' do + status 200 + + { socket_path: Gitlab.config.gitaly.socket_path } + end end end end |