# Routes

- #### [catch_all.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/catch_all.rb)

    This API catches all the routes and redirects to [failures#show](https://github.com/bigbinary/neeto-commons-backend/blob/main/app/controllers/neeto_commons_backend/failures_controller.rb#L7) action.

- #### [devise.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/devise.rb)

    This API adds all the authorization related routes.

- #### [direct_uploads.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/direct_uploads.rb)

    This API adds route for `/direct_uploads`.

- #### [draw.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/draw.rb)
 
    This file helps in adding all the commons, neeto and basic routes from different files.
    

- #### [email_previews.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/email_previews.rb)

    This API mounts the `RailsEmailPreview::Engine` for `/emails` route.

- #### [errors.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/errors.rb)

    This API matches the `"/:status_code"` route and redirects to [failures#show](https://github.com/bigbinary/neeto-commons-backend/blob/main/app/controllers/neeto_commons_backend/failures_controller.rb#L7) action.

- #### [health.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/health.rb)

    This API adds routes for `/health_check` and `/app_version`.

- #### [letter_opener.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/letter_opener.rb)
 
    This API mounts `LetterOpenerWeb::Engine` for `/mailbox` route.
    

- #### [sidekiq.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/sidekiq.rb)

    This API adds the routes for `Sidekiq::Web`.

- #### [well_knowns.rb](https://github.com/bigbinary/neeto-commons-backend/blob/main/lib/neeto_commons_backend/routes/well_knowns.rb)

    This API add the `/assetlinks` and `/apple-app-site-association` routes for [well_knowns_controller](https://github.com/bigbinary/neeto-commons-backend/blob/main/app/controllers/neeto_commons_backend/well_knowns_controller.rb).