route - multiple declarations
Struct route
UDA. You can use to filter requests using a function bool(Request request) { }
struct route(alias T)
;
Example
@endpoint
@route!(x => x .uri .startsWith("/api"))
void api(Request r, Output o) { ... }
Alias route
UDA. You can use to filter requests using a uri.
Example
@endpoint
@route!"/hello.html"
void api(Request r, Output o) { ... }