Chapter 07

ルーティングの対応付けを表示する

toyoshi
toyoshi
2021.12.30に更新

表示だけでなくパスも表示してくれます。

% mix phx.routes
       article_path  GET     /                                      BlogWeb.ArticleController :index
       article_path  GET     /articles                              BlogWeb.ArticleController :index
       article_path  GET     /articles/:id/edit                     BlogWeb.ArticleController :edit
       article_path  GET     /articles/new                          BlogWeb.ArticleController :new
       article_path  GET     /articles/:id                          BlogWeb.ArticleController :show
       article_path  POST    /articles                              BlogWeb.ArticleController :create
       article_path  PATCH   /articles/:id                          BlogWeb.ArticleController :update
                     PUT     /articles/:id                          BlogWeb.ArticleController :update
       article_path  DELETE  /articles/:id                          BlogWeb.ArticleController :delete
live_dashboard_path  GET     /dashboard                             Phoenix.LiveView.Plug :home
live_dashboard_path  GET     /dashboard/:page                       Phoenix.LiveView.Plug :page
live_dashboard_path  GET     /dashboard/:node/:page                 Phoenix.LiveView.Plug :page
                     *       /dev/mailbox                           Plug.Swoosh.MailboxPreview []
          websocket  WS      /live/websocket                        Phoenix.LiveView.Socket
           longpoll  GET     /live/longpoll                         Phoenix.LiveView.Socket
           longpoll  POST    /live/longpoll                         Phoenix.LiveView.Socket