endpoint -> router -> controller -> view
iex -S mix phx.server
API 1
- Url: http://localhost:4000/hello
- Verb: GET
- Path: /hello
경로:
- $WEB/lib/<project_name>_web/router.ex
경로:
- $WEB/lib/<project_name>_web/controllers/<path_name>_controller.ex
경로:
- $WEB/lib/<project_name>_web/controllers/<path_name>_html.ex
- $WEB/lib/<project_name>_web/controllers/<path_name>_html/index.html.heex
경로:
- $WEB/lib/<project_name>_web/plugs/<plug_name>.ex