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

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

mercurial