Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/wiki.rb')
-rw-r--r--config/routes/wiki.rb20
1 files changed, 4 insertions, 16 deletions
diff --git a/config/routes/wiki.rb b/config/routes/wiki.rb
index 3e71c5eb924..d439c99270e 100644
--- a/config/routes/wiki.rb
+++ b/config/routes/wiki.rb
@@ -1,21 +1,13 @@
scope(controller: :wikis) do
- scope(path: 'wikis/pages', as: :wiki_pages, format: false) do
- get :new, to: 'wiki_pages#new'
- post '/', to: 'wiki_pages#create'
- end
-
scope(path: 'wikis', as: :wikis) do
get :git_access
get :pages
- get '/', to: redirect('%{namespace_id}/%{project_id}/-/wiki_pages/home')
- get '/*id', to: redirect('%{namespace_id}/%{project_id}/-/wiki_pages/%{id}')
- end
-
- scope(path: '-/wiki_pages', as: :wiki_page, format: false) do
- post '/', to: 'wiki_pages#create'
+ get :new
+ get '/', to: redirect('%{namespace_id}/%{project_id}/wikis/home')
+ post '/', to: 'wikis#create'
end
- scope(path: '-/wiki_pages/*id', as: :wiki, format: false, controller: :wiki_pages) do
+ scope(path: 'wikis/*id', as: :wiki, format: false) do
get :edit
get :history
post :preview_markdown
@@ -23,8 +15,4 @@ scope(controller: :wikis) do
put '/', action: :update
delete '/', action: :destroy
end
-
- scope(path: '-/wiki_dirs/*id', as: :wiki_dir, format: false, controller: :wiki_directories) do
- get '/', action: :show
- end
end