@route — Aquilia Documentation
Comprehensive guide and documentation for @route in the Aquilia framework. View API reference, examples, and implementation patterns.
Back to Decorators @route The @route decorator acts as a generic factory that can apply multiple HTTP methods to a single handler function. It is useful for unifying logic or handling methods dynamically. Basic Usage Method Multiplexing Under the hood, @route iterates over the provided list of methods and applies the corresponding specific decorator (e.g., GET, POST) sequentially. Stacking Behavior Calling @route(["GET", "POST"]) is functionally equivalent to stacking: @GET(...) @POST(...) def handler(...): ... Previous: @WS Next: RequestCtx )
Go to Homepage