You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Play Framework [deprecated]
Hello there,
We have a multi-module project that we would like to extend with modules. The idea is to add some modules to the classpath and activate them via `play.modules.enabled` I made some successful tests.
But I would like to allow those modules to extends the router and, sadly, I cannot find anything about that. I saw in this discussion[1] that the sird router should be the best option however I don't see how to dynamically add routes to the default router (routes.conf) ?
So, can a Module provide custom routes configure at runtime, during the binding ?
But I would be interested to see how it is done in the "CRUD module". Do you have a link ?
Thanks
juan....@reduc.edu.cu
unread,
Jul 5, 2019, 2:09:31 PM7/5/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
Hello Gervais.
I meant the CRUD module from the Play! Framework 1.x series (because of
the [deprecated] tag in the thread). It is included in the distribution
packages, you can donwload the latest from [1]. Once you extract it, look
into modules/crud/conf/routes. See the Play! documentation [2] for an
explanation of how to include those routes in your application. The Secure
module provides its own routes too by the way.