route

UDA. You can use to filter requests using a function bool(Request request) { }

Members

Static functions

apply
bool apply(Request r)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

@endpoint
@route!(x => x.uri.startsWith("/api"))
void api(Request r, Output o) { ... }

Meta