config/routes.rb in disco_app-0.8.5 vs config/routes.rb in disco_app-0.8.6
- old
+ new
@@ -14,9 +14,24 @@
get 'install' => :install, as: :install
get 'installing' => :installing, as: :installing
get 'uninstalling' => :uninstalling, as: :uninstalling
end
+ controller 'admin' do
+ get 'admin', to: redirect('/admin/shops')
+ get 'admin/shops' => 'admin/shops#index'
+ end
+
+ namespace :admin do
+ resources :shops, path: '/shops', only: [:index, :edit, :update]
+ resource :app_settings, only: [:edit, :update]
+
+ # JSON-API resources for admins."
+ namespace :resources do
+ jsonapi_resources :shops
+ end
+ end
+
# Make the embedded app frame emulator available in development.
if Rails.env.development?
controller :frame do
get 'frame' => :frame, as: :frame
end