mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Refactor admin interface under namespace
This commit is contained in:
parent
0c3105a159
commit
a3b04786cf
7 changed files with 18 additions and 18 deletions
|
@ -5,13 +5,15 @@ Rails.application.routes.draw do
|
|||
get 'error/:command', to: 'errors#error', defaults: { format: :xml }
|
||||
end
|
||||
|
||||
resources :setting_groups
|
||||
namespace(:admin) do
|
||||
resources :setting_groups
|
||||
end
|
||||
|
||||
# The priority is based upon order of creation: first created -> highest priority.
|
||||
# See how all your routes lay out with "rake routes".
|
||||
|
||||
# You can have the root of your site routed with "root"
|
||||
root 'setting_groups#index'
|
||||
root 'admin/setting_groups#index'
|
||||
|
||||
# Example of regular route:
|
||||
# get 'products/:id' => 'catalog#view'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue