View Source Igniter.Libs.Phoenix (igniter v0.3.33)

Codemods & utilities for working with Phoenix

Summary

Functions

Link to this function

add_pipeline(igniter, name, contents, opts \\ [])

View Source
Link to this function

add_scope(igniter, route, contents, opts \\ [])

View Source
Link to this function

endpoints_for_router(igniter, router)

View Source
@spec endpoints_for_router(igniter :: Igniter.t(), router :: module()) ::
  {Igniter.t(), [module()]}
Link to this function

select_router(igniter, label \\ "Which router should be modified?")

View Source
@spec web_module(Igniter.t()) :: module()

Returns the web module name for the current app

This function is deprecated. Use `web_module/0` instead..
@spec web_module_name() :: module()

Returns the web module name for the current app

This function is deprecated. Use `web_module_name/1` instead..
@spec web_module_name(String.t()) :: module()

Generates a module name that lives in the Web directory of the current app.

Link to this function

web_module_name(igniter, suffix)

View Source
@spec web_module_name(Igniter.t(), String.t()) :: module()