X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FAnnotations.kt;h=8287130f2e46a53778e6030e7b214e7d84dafa74;hp=0bda1337c0cd31e3c8b02cdda3e6dcdc166ee9b5;hb=c389ee8f5e6eacae70438c3f364e8674c09d1959;hpb=3492fada878049f5381d8221e73562d6d020200d diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt index 0bda133..8287130 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt @@ -9,3 +9,7 @@ val Page<*>.menuName get() = javaClass.getAnnotation(MenuName::class.java)?.valu annotation class TemplatePath(val value: String) val Page<*>.templatePath get() = javaClass.getAnnotation(TemplatePath::class.java)?.value + +annotation class ToadletPath(val value: String) + +val Page<*>.toadletPath get() = javaClass.getAnnotation(ToadletPath::class.java)?.value