(String template)
| 101 | } |
| 102 | |
| 103 | public static TemplatizedRouteConfig get(String template) { |
| 104 | UrlTemplate urlTemplate = new UrlTemplate(Require.nonNull("URL template", template)); |
| 105 | |
| 106 | return new TemplatizedRouteConfig( |
| 107 | new MatchesHttpMethod(GET).and(new MatchesTemplate(urlTemplate)), urlTemplate); |
| 108 | } |
| 109 | |
| 110 | public static TemplatizedRouteConfig post(String template) { |
| 111 | UrlTemplate urlTemplate = new UrlTemplate(Require.nonNull("URL template", template)); |