Skip to content

Improve UrlMappings to allow specifying of HTTP method as a prefix to the mapping #9480

@graemerocher

Description

@graemerocher

Currently outside of the resource mappings you have to do:

 "/books"(controller:"book", method:"GET")

It is more readable of the HTTP method can be specified before. So we should allow:

get "/books"(controller:"book")

Note Groovy doesn't allow fully upper case method names like GET so lower case is used

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions