route

UDA. You can use to filter requests using a uri.

  1. struct route(alias T)
  2. alias route(string uri) = route!(r => compareUri!uri(r))
    alias route(string uri) = route!(r => compareUri!uri(r))

Examples

@endpoint
@route!"/hello.html"
void api(Request r, Output o) { ... }

Meta