diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-06-24 16:43:46 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-08-16 15:50:17 -0300 |
commit | 28726729452ef64270534806e75a9595ea1a659d (patch) | |
tree | 7f9144f88c1fa9935f3d05d50ab9b1bcc4e7558d /config | |
parent | 7f853e2245eff92c037af5e007163d3e9631888d (diff) | |
download | gitlab-ce-28726729452ef64270534806e75a9595ea1a659d.tar.gz |
Load issues and merge requests templates from repository
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 1d2db91344f..63a8827a6a2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -528,6 +528,11 @@ Rails.application.routes.draw do put '/update/*id', to: 'blob#update', constraints: { id: /.+/ }, as: 'update_blob' post '/preview/*id', to: 'blob#preview', constraints: { id: /.+/ }, as: 'preview_blob' + # + # Templates + # + get '/templates/:template_type/:key' => 'templates#show', as: :template + scope do get( '/blob/*id/diff', |