Scala & Play: route regex without identifier

Viewed 2604

I'd like to provide optional plurality to my routes in a Play application. For example:

/path/1
/paths/1

The route URL I tried was something like this:

/path<[s?]>/:id

If I put just a $ in front of it, it asks for an identifier; if I given it an identifier, it tells me I need to use it in the call definition. Is what I'm trying to do possible without having to do a Cartesian product of every possibly with/out combination of plurality?

2 Answers
Related