diff options
author | Christopher Bartz <bartz@dkrz.de> | 2016-04-13 15:17:42 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-08-11 16:54:18 +0300 |
commit | ecb3f1eb6c87ab40108a5d71a3287a205ab6fefb (patch) | |
tree | 3d7470b52f6bdbd48b0e7a271f36a00035e785ee /config | |
parent | a081b842f9b4e0205cf08656403e6bd9bf0d367f (diff) |
Rename `markdown_preview` routes to `preview_markdown`
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2f5f32d9e30..cc7b0fb5d93 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -471,7 +471,7 @@ Rails.application.routes.draw do post :unarchive post :housekeeping post :toggle_star - post :markdown_preview + post :preview_markdown post :export post :remove_export post :generate_new_export @@ -660,7 +660,7 @@ Rails.application.routes.draw do get '/wikis/*id', to: 'wikis#show', as: 'wiki', constraints: WIKI_SLUG_ID delete '/wikis/*id', to: 'wikis#destroy', constraints: WIKI_SLUG_ID put '/wikis/*id', to: 'wikis#update', constraints: WIKI_SLUG_ID - post '/wikis/*id/markdown_preview', to: 'wikis#markdown_preview', constraints: WIKI_SLUG_ID, as: 'wiki_markdown_preview' + post '/wikis/*id/preview_markdown', to: 'wikis#preview_markdown', constraints: WIKI_SLUG_ID, as: 'wiki_preview_markdown' end resource :repository, only: [:create] do |