Clone
Tech Doc: App Routes
Luis Ramos edited this page 2019-02-11 10:51:17 +00:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This page lists all the sources of routes in the OFN app.

You can see the full list by running ´rake routes´

Routes

In OFN:

In the core routes above you can see that spree and web engines are included in ofn routes

That includes the web engine routes engines/web/config/routes.rb

And all the spree routes files:

Additionally, devise also gets included with its routes (authentication related routes):

To understand how rails routes work you can read this guide: https://guides.rubyonrails.org/v3.2.8/routing.html

A very important point is "2.2 CRUD, Verbs, and Actions" where you can see how one entry in routes can generate 7 different routes.

Happy navigations!