I'm trying to setup custom routes for Devise_Token_Auth for additional endpoints for my User model. Here's my default devise_token_auth routes.
mount_devise_token_auth_for 'User', at: 'auth'
Now, I want to add routes for some endpoints which are defined in UsersControllers. e.g endpoints are with name:
- signup_email
- verify_mobile_signin
- register_sports_complex
which are post requests. How can I define routes for these additional endpoints which are not already defined in Devise_token_auth controllers. My UsersController.rb file is in directory custom_users/users_controller.rb.
Any help is much appreciated.
Aucun commentaire:
Enregistrer un commentaire