Skip to content

Template index matching mode #999

Open
@jgustie

Description

@jgustie

We have a lot of template patterns that look like:

router.attach("/foo/", FooIndexServerResource.class);
router.attach("/foo/{id}", FooServerResource.class);

When we enable extension tunneling this results in an unfortunate URL syntax for the index resource: .../foo/.json

Does it make sense to have something like a Template.MODE_INDEX that only matches the trailing slash if tunneling is disabled but matches the trailing slash OR an extension list if extension tunneling is enabled?

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