22 lines
493 B
Java
22 lines
493 B
Java
package org.openautonomousconnection.webserver.api;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Declares a route path for a server-side Java WebPage.
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.TYPE)
|
|
public @interface Route {
|
|
|
|
/**
|
|
* The absolute route path (must start with '/').
|
|
*
|
|
* @return route path
|
|
*/
|
|
String path();
|
|
}
|