20 lines
424 B
Ruby
20 lines
424 B
Ruby
Rails.application.routes.draw do
|
|
|
|
devise_for :users
|
|
|
|
resources :companies do
|
|
resources :cafs
|
|
end
|
|
|
|
resources :subprincipleitems, only: [:edit, :update]
|
|
|
|
authenticated :user do
|
|
root to: 'home#index', as: :authenticated_root
|
|
end
|
|
|
|
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
|
|
|
# Defines the root path route ("/")
|
|
root to: redirect('/users/sign_in')
|
|
end
|