summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-14 21:22:44 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-01-31 22:53:58 +0000
commit7f12cb0eed06ad3f83126a3a8038e7fa658f4eac (patch)
tree36f2b0b2bed11d901db304df2043ba0eb17340a2 /config/routes
parent84edc9a22f5d858cb02f32d22b66c92fb939378a (diff)
downloadgitlab-ce-7f12cb0eed06ad3f83126a3a8038e7fa658f4eac.tar.gz
Split PagesController into PagesController and PagesDomainsController
1. PagesController is used to show all domains and general overview of Pages 2. PagesDomainsController is used to manage pages domains
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/project.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 7a41cb81bfa..ea3bfdd45e6 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -39,10 +39,8 @@ constraints(ProjectUrlConstrainer.new) do
end
end
- resources :pages, except: [:edit, :update] do
- collection do
- delete :remove_pages
- end
+ resource :pages, only: [:show, :destroy] do
+ resources :domains, only: [:show, :new, :create, :destroy], controller: 'pages_domains'
end
resources :compare, only: [:index, :create] do