mysig/route

Types

pub type Endpoint {
  Page(String)
  App
}

Constructors

  • Page(String)
  • App
pub type Route(endpoint) {
  Route(index: endpoint, items: List(#(String, Route(endpoint))))
}

Constructors

  • Route(index: endpoint, items: List(#(String, Route(endpoint))))

Functions

pub fn match(
  segments: List(String),
  route: Route(a),
) -> Result(a, Nil)
Search Document