X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FFollowSonePage.kt;h=244cb524ca7cc0e55b8e8c686878db0c4afbb583;hb=03cec6a6772c2d836d94864adddaf544cbe9d72f;hp=23752788a70923b0ea548160e054947274b87af8;hpb=2e6be6f2fb6afede009dacc48b8e3318e30e5057;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/FollowSonePage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/FollowSonePage.kt index 2375278..244cb52 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/FollowSonePage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/FollowSonePage.kt @@ -11,8 +11,9 @@ import javax.inject.* /** * This page lets the user follow another Sone. */ +@ToadletPath("followSone.html") class FollowSonePage @Inject constructor(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) : - LoggedInPage("followSone.html", "Page.FollowSone.Title", webInterface, loaders, templateRenderer) { + LoggedInPage("Page.FollowSone.Title", webInterface, loaders, templateRenderer) { override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) { if (soneRequest.isPOST) {