resthub / springmvc-router

Adds route mapping capacity to any "Spring MVC based" webapp. Uses playframework.org Router implementation.

Home Page:http://resthub.github.com/springmvc-router/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request for manually providing Route objects

balatbn opened this issue · comments

Currently route objects are loaded automatically by taking a list of files via listRouteFiles() method. It would be great to have a routes() (or similar method) in RouterConfigurationSupport, by which we can pass pre-constructed routes.

This will be helpful in case the request mapping needs to be maintained in some other place. For ex: server acting as a proxy for multiple/different REST calls.

If this seems a valid option, adding this functionality in new 2.x branch alone is also fine.