diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2016-03-30 15:04:58 -0300 |
---|---|---|
committer | Gabriel Mazetto <gabriel@gitlab.com> | 2016-03-30 15:04:58 -0300 |
commit | b69f8a62b2078fbd43413c670dea76871b74d0d5 (patch) | |
tree | 1f0888698071a83b6ed83c0909d1f19f3cf0fcb1 /config/routes.rb | |
parent | 4a01b5e293ccb358d77ac1a25b92d14fd913a4d7 (diff) | |
download | gitlab-ce-b69f8a62b2078fbd43413c670dea76871b74d0d5.tar.gz |
Add specific markdown_preview route for Wikis
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 6bf22fb4456..e57c04595f6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -575,6 +575,7 @@ Rails.application.routes.draw do # Order matters to give priority to these matches get '/wikis/git_access', to: 'wikis#git_access' get '/wikis/pages', to: 'wikis#pages', as: 'wiki_pages' + post '/wikis/markdown_preview', to:'wikis#markdown_preview' post '/wikis', to: 'wikis#create' get '/wikis/*id/history', to: 'wikis#history', as: 'wiki_history', constraints: WIKI_SLUG_ID |