Skip to content

bracket support in annotation as jax-rs #120

Description

@mrenou

Hello,

When I write this :

@Get("/avatars/:userId.png")
public Payload getAvatar(String userId) {

}

With the http call "GET /avatars/42.png", I expect to have userid equals to "42", actualy, I have userId equals to "42.png".

May be, you could add bracket support, to isolate the variable name, as in jax-rs :

@Get("/avatars/:{userId}.png")
public Payload getAvatar(String userId) {

}

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions