nova_controller behaviour (nova v0.14.3)

View Source

Nova Controller behaviour definition

Summary

Functions

Returns the routes defined in the module, if any

Callbacks

routes/2

(optional)
-callback routes(Env :: atom(), Opts :: map()) -> Routes :: [map()].

Functions

routes(Module, Env)

-spec routes(module() | {module(), map()}, Env :: atom()) -> Routes :: [map()].

Returns the routes defined in the module, if any