HTTP ROUTES

Use a verb as the route declaration

Imported endpoint modules use lowercase get, post, put, patch, and delete declarations. Each route declares its path and handler directly.

dowe
endpoints apiRoutes
  group path:"/api/auth"
    post path:"/register" handler:registerUser
    post:
      path:"/login"
      handler:loginUser

Inline or multiline

A property-suite header such as post: accepts path and handler one per line. It lowers exactly like the compact form.

Dynamic segments

Use :id in a path and read req.params.id inside the server handler. Route matching stays owned by the Rust runtime.