19 lines
363 B
Java
19 lines
363 B
Java
|
|
package org.openautonomousconnection.webserver.api;
|
||
|
|
|
||
|
|
import java.lang.annotation.*;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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();
|
||
|
|
}
|