gateway/config/routes.rb

16 lines
329 B
Ruby

Rails.application.routes.draw do
namespace :cms do
resources :pages do
resources :sections
end
resources :images
end
get 'pages/:id' , to: 'high_voltage/pages#show', id: 'index'
# root to: 'high_voltage/pages#show', id: 'index'
root to: 'cms#view' , id: 'index'
get "/:id" , to: 'cms#view'
end