Maru v0.12.0 Maru.Builder.DSLs View Source
General DSLs for parsing router.
Link to this section Summary
Functions
Define plugs which execute before routes match
Define description for current endpoint
Define description with a block for current endpoint
Mount another router to current router
Define params block of current endpoint
Save shared param to module attribute
Define pipeline block of current endpoint
Push a Plug
struct to current scope
Push a Plug
struct with options and guards to current scope
Push a overridable Plug
struct to current scope
Push a overridable Plug
struct with options and guards to current scope
Define path prefix of current router
Define version of current router
version: “v1”, do … end: Version of routes within block
Link to this section Functions
Define plugs which execute before routes match.
Define description for current endpoint.
Define description with a block for current endpoint.
Mount another router to current router.
Define params block of current endpoint.
Save shared param to module attribute.
Define pipeline block of current endpoint.
Push a Plug
struct to current scope.
Push a Plug
struct with options and guards to current scope.
Push a overridable Plug
struct to current scope.
Push a overridable Plug
struct with options and guards to current scope.
Define path prefix of current router.
Define version of current router.
version: “v1”, do … end: Version of routes within block.
version: “v2”, extend: “v1”, at: V1 Define version and extended router of current router.