原文
# Capture/constrain root segments with a signature.
get -> 'product', UUIDv4 $id {
content 'application/json', get-product($id);
}
# Slurp root segments and serve static content
get -> 'css', *@path {
static 'assets/css', @path;
}
# Get stuff from the query string
get -> 'search', :$term! {
content 'application/json', do-search($term);
}