package be.jeffcheasey88.peeratcode.webserver; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Route { String path() default "^.*$"; String type() default "GET"; boolean needLogin() default false; }