diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-31 21:06:28 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-31 21:06:28 +0000 |
commit | 8f210aebe1d740e8ee194f171f1f33a6e1fba313 (patch) | |
tree | f43c545801bb96fd0737f18493fb30ab92972627 /config | |
parent | 996f700997805b3590da8d8afdd19d193989078a (diff) | |
download | gitlab-ce-8f210aebe1d740e8ee194f171f1f33a6e1fba313.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/project.rb | 2 | ||||
-rw-r--r-- | config/routes/wiki.rb | 20 |
2 files changed, 5 insertions, 17 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index cc86e318dae..a132fb62647 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -617,7 +617,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end # Since both wiki and repository routing contains wildcard characters - # its preferable to keep them below all other project routes + # its preferable to keep it below all other project routes draw :wiki draw :repository 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 |