Skip to content

with operator for routes #345

@jknack

Description

@jknack

The with operator group one or more routes and apply common attributes, consumes and produces types, path exclusions, etc... to all them:

{
  with(() -> {
    get("/a", ...);
    get("/b", ...);
    get("/c", ...);
    ...
  }).attr("foo", "bar")
    .produces("html");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions