diff options
Diffstat (limited to 'config/routes/project.rb')
-rw-r--r-- | config/routes/project.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index c1273db8ee5..4a2898915b1 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -195,6 +195,12 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do defaults: { format: 'json' }, constraints: { key: %r{[^/]+}, template_type: %r{issue|merge_request}, format: 'json' } + get '/description_templates/names/:template_type', + to: 'templates#names', + as: :template_names, + defaults: { format: 'json' }, + constraints: { template_type: %r{issue|merge_request}, format: 'json' } + resources :commit, only: [:show], constraints: { id: /\h{7,40}/ } do member do get :branches |