Router
Route Registration
struct MyEndpoint
include Azu::Endpoint(EmptyRequest, MyResponse)
get "/path" # Registers GET /path
def call : MyResponse
# Handle request
end
endRoute Patterns
Static Routes
get "/"
get "/users"
get "/api/v1/health"Dynamic Parameters
Wildcard Routes
HTTP Methods
Method
Macro
Description
Route Matching
Accessing Route Parameters
Wildcard Parameters
Route Constraints
Custom Constraints
Router Configuration
Path Caching
Router API
routes
find
Route Groups
Performance
Benchmarks
Optimization Tips
Error Handling
Not Found
Method Not Allowed
Complete Example
See Also
Last updated
Was this helpful?
