pub fn expand(path: String, handlers: Map(String, Handler(a, b)), router: Router(
a,
b,
)) -> Map(String, Handler(a, b))
pub fn get(router: Router(a, b), path: String, handler: fn(
Request(a),
) -> Response(b)) -> Router(a, b)
pub fn handle(router: Router(a, b), routes: Map(
Method,
fn(Request(a)) -> Response(b),
)) -> fn(Request(BitString)) -> Response(BitBuilder)
pub fn new() -> Router(BitString, BitBuilder)
pub fn post(router: Router(a, b), path: String, handler: fn(
Request(a),
) -> Response(b)) -> Router(a, b)
pub fn router(router: Router(a, b), path: String, subrouter: Router(
a,
b,
)) -> Router(a, b)
pub fn to_routes(router: Router(a, b)) -> Map(String, Route)