Mix.Tasks.Phoenix.Routes

Mix.Tasks.Phoenix.Routes

Prints all routes for the default or a given router.

$ mix phoenix.routes
$ mix phoenix.routes MyApp.AnotherRouter

The default router is inflected from the application name unless a configuration named :namespace is set inside your application configuration. For example, the configuration:

config :my_app,
  namespace: My.App

will exhibit the routes for My.App.Router when this task is invoked without arguments.

Umbrella projects do not have a default router and therefore always expect a router to be given.

Summary

Functions

run(args)

Functions

run(args)

© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Mix.Tasks.Phoenix.Routes.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部