90919293949596979899100
r.method = "POST"; r.path = pathSpec; // no params, no post-fix. r.action = act; r.routesFile = "_autopath"; r.routesFileLine = AUTO_ROUTE_LINE; r.compute(); routes.add(r); } // the catch other Route r = new Route(); r.method = "*";
100101102103104105106107108109110
r.method = "*"; r.path = pathSpec + paramNames + pathEnding; r.action = act; r.routesFile = "_autopath"; r.routesFileLine = AUTO_ROUTE_LINE; r.compute(); routes.add(r); } else { Route r = new Route(); r.method = "*"; r.path = pathSpec;
109110111112113114115116117118119
r.method = "*"; r.path = pathSpec; r.action = act; r.routesFile = "_autopath"; r.routesFileLine = AUTO_ROUTE_LINE; r.compute(); routes.add(r); } } else { for (Annotation an : httpMethodAnnotations) { Route r = new Route();
124125126127128129130131132133134
if (!autoRouting || an instanceof POST) { r.path = pathSpec; } else { r.path = pathSpec + paramNames + pathEnding; } r.compute(); routes.add(r); } } pathSpecPattern = Pattern.compile(pathSpec.replaceAll(RouterClass.urlParamCapture, "\\\\{(.*)\\\\}"));