play.modules.swagger.RouteWrapper Maven / Gradle / Ivy
package play.modules.swagger;
import play.routes.compiler.Route;
import java.util.Map;
public class RouteWrapper {
private Map router;
public RouteWrapper(Map router) {
this.router = router;
}
public Route get(String routeName) {
return router.get(routeName);
}
public boolean exists(String routeName) {
return router.containsKey(routeName);
}
public Map getAll() {
return router;
}
}