Mapl handles static routes, path parameters and wildcards.
Mapl supports GET
, POST
, PUT
, DELETE
, PATCH
, OPTIONS
and TRACE
method by default.
Sub-routers
You can extend all routes of another instance.
After calling app.route
, the app
instance has two registered routes, /
and /api
.
Compilation
Under the hood, Mapl inlines route patterns into optimized code paths to improve performance.
For example these routes:
Will compile into:
Mapl generates code for the handlers and the router generates
code for path and request method matching.