config/routes.rb in binda-0.0.6 vs config/routes.rb in binda-0.0.7

- old
+ new

@@ -2,14 +2,14 @@ # ROOT # ---- # https://github.com/plataformatec/devise/wiki/How-To:-Require-authentication-for-all-components # authenticated :user, class_name: "Binda::User", module: :devise do - # root to: 'settings#dashboard', as: :authenticated_root + # root to: 'boards#dashboard', as: :authenticated_root # end # root to: 'users/sessions#new' - root to: 'settings#dashboard' + root to: 'boards#dashboard' # DEVISE # ------ # scope "admindd_ddpanel" do # https://github.com/plataformatec/devise/blob/88724e10adaf9ffd1d8dbfbaadda2b9d40de756a/lib/devise/rails/routes.rb#L143 @@ -29,40 +29,37 @@ resources :users end # ADMINISTRATION PANEL # -------------------- - get 'dashboard', to: 'settings#dashboard', as: :dashboard - post 'dashboard', to: 'settings#update_dashboard' - resources :settings + get 'dashboard', to: 'boards#dashboard', as: :dashboard post 'structures/sort' resources :structures do - - resources :categories - - post 'components/sort' - resources :components do - post 'sort_repeaters' - post 'new_repeater' - end - post 'field_groups/sort' post 'field_groups/add_child' resources :field_groups do - post 'field_settings/add_child' post 'field_settings/sort' resources :field_settings - end + resources :boards do + post 'sort_repeaters' + post 'new_repeater' + end + post 'components/sort' + resources :components do + post 'sort_repeaters' + post 'new_repeater' + end + resources :categories end resources :choices, only: [:destroy] - resources :texts - resources :bindings - resources :assets - resources :repeaters - resources :dates + # resources :texts + # resources :bindings + # resources :assets + resources :repeaters, only: [:destroy] + # resources :dates end