✨ Add @ToadletPath annotation
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / ErrorPages.kt
index bd6cb1f..85c7f69 100644 (file)
@@ -5,13 +5,17 @@ import net.pterodactylus.sone.web.*
 import net.pterodactylus.sone.web.page.*
 
 @TemplatePath("/templates/invalid.html")
+@ToadletPath("invalid.html")
 class InvalidPage(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) : SoneTemplatePage("invalid.html", webInterface, loaders, templateRenderer, "Page.Invalid.Title")
 
 @TemplatePath("/templates/noPermission.html")
+@ToadletPath("noPermission.html")
 class NoPermissionPage(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) : SoneTemplatePage("noPermission.html", webInterface, loaders, templateRenderer, "Page.NoPermission.Title")
 
 @TemplatePath("/templates/emptyImageTitle.html")
+@ToadletPath("emptyImageTitle.html")
 class EmptyImageTitlePage(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) : SoneTemplatePage("emptyImageTitle.html", webInterface, loaders, templateRenderer, "Page.EmptyImageTitle.Title")
 
 @TemplatePath("/templates/emptyAlbumTitle.html")
+@ToadletPath("emptyAlbumTitle.html")
 class EmptyAlbumTitlePage(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) : SoneTemplatePage("emptyAlbumTitle.html", webInterface, loaders, templateRenderer, "Page.EmptyAlbumTitle.Title")