src/main/java/de/uapcore/lightpit/RequestMapping.java

changeset 130
7ef369744fd1
parent 70
821c4950b619
--- a/src/main/java/de/uapcore/lightpit/RequestMapping.java	Thu Oct 15 14:01:49 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/RequestMapping.java	Thu Oct 15 18:36:05 2020 +0200
@@ -51,10 +51,12 @@
 
     /**
      * Specifies the request path relative to the module path.
-     * The path must be specified <em>without</em> leading slash, but may have a trailing slash.
-     * Requests will only be handled if the path exactly matches.
+     * The trailing slash is important.
+     * A node may start with a dollar ($) sign.
+     * This part of the path is then treated as an path parameter.
+     * Path parameters can be obtained by including the {@link PathParameters} interface in the signature.
      *
      * @return the request path the annotated method should handle
      */
-    String requestPath() default "";
+    String requestPath() default "/";
 }

mercurial