trails_handler behaviour (trails v3.0.0)
View SourceTrails handler.
Handlers can implement either the trails/0 or trails/1 callback to
expose the cowboy routes in the project.
Summary
Callbacks
Returns the cowboy routes defined in the called module.
Returns the cowboy routes defined in the called module.
Callbacks
-callback trails() -> trails:trails().
Returns the cowboy routes defined in the called module.
-callback trails(Opts :: map()) -> trails:trails().
Returns the cowboy routes defined in the called module.
Functions
-spec trails(module() | {module(), map()}) -> trails:trails().