Router: Difference between revisions

From ElixirBlocks
Jump to: navigation, search
No edit summary
No edit summary
 
Line 1: Line 1:
In Elixir Phoenix the router responsible for "routing" endpoint requests to data.
In Elixir Phoenix the router is responsible for "routing" endpoint requests to data.


When you create a new phoenix application named "app" the router file is in this directory:
If you were to create a new phoenix application named "app" the router file would be in this directory:


'''app / lib / app_web / router.ex'''
'''app / lib / app_web / router.ex'''

Latest revision as of 00:50, 15 March 2024

In Elixir Phoenix the router is responsible for "routing" endpoint requests to data.

If you were to create a new phoenix application named "app" the router file would be in this directory:

app / lib / app_web / router.ex