Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define routes for user, category, and entity resources
• Added the devise_for :users route to handle user authentication routes provided by Devise. • Added a get route for the /splash URL, directing it to the splashes#index action. • Defined routes within the devise_scope block to handle root URLs for authenticated and unauthenticated users. • For authenticated users, set the root URL to categories#index action and name it authenticated_root. • For unauthenticated users, set the root URL to splashes#index action and name it unauthenticated_root. • Created nested routes for user resources, allowing routes for categories and entities that are associated with a user. • Restricted the routes for users to only the index, show, and new actions. • Restricted the routes for categories to only the new, create, show, index, and destroy actions. • Restricted the routes for entities to only the new, create, index, show, and destroy actions.
- Loading branch information