Open
Description
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?