nova_controller behaviour (nova v0.18.1)

View Source

Nova Controller behaviour definition

Summary

Callbacks

Returns the routes defined in the module, if any.

Functions

Returns the routes defined in the module, if any

Callbacks

routes(Env, Opts)

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

Returns the routes defined in the module, if any.

Functions

routes(Env, Opts)

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

Returns the routes defined in the module, if any