config/routes.rb in bigmouth-0.0.1 vs config/routes.rb in bigmouth-0.0.2
- old
+ new
@@ -1,6 +1,11 @@
Bigmouth::Engine.routes.draw do
+ get "admin" => redirect("admin/articles")
+ resources :articles, only: %i(index show), path: ""
root "articles#index"
- resources :articles
-
+ namespace :admin do
+ resources :articles
+ resources :images
+ root "articles#index"
+ end
end