我可以在一行中捕获以下两条路线吗?
GET /game controllers.Main.app.gamelist
GET /game/ controllers.Main.app.gamelist
最佳答案
当前不支持此操作,并且 ticket has been submitted to the issue tracker .在 Google Groups 上也有关于此的讨论(包括一些解决方法)。 .
希望这将很快以某种聪明的方式实现。
关于regex - 如何在 Play 2.0 中路由 URL,以便它们对结尾斜杠无动于衷,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10004746/