X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FMarkAsKnownAjaxPage.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FMarkAsKnownAjaxPage.kt;h=808d2fafd0b87728c8dc9b80c299d2a3bb2420b6;hp=4ab6d187e154b69adcf91d126558f042a67ed0b9;hb=ca45de0dcbd2e361ab630bbee1d47ff6cf34d97c;hpb=c12bed3557f3f1d80c9694a778fcaf3429b04073 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.kt index 4ab6d18..808d2fa 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.kt @@ -2,15 +2,15 @@ package net.pterodactylus.sone.web.ajax import net.pterodactylus.sone.utils.parameters import net.pterodactylus.sone.web.WebInterface -import net.pterodactylus.sone.web.page.FreenetRequest +import net.pterodactylus.sone.web.page.* import javax.inject.Inject /** * AJAX page that lets the user mark a number of [net.pterodactylus.sone.data.Sone]s, * [net.pterodactylus.sone.data.Post]s, or [net.pterodactylus.sone.data.Reply]s as known. */ -class MarkAsKnownAjaxPage @Inject constructor(webInterface: WebInterface) : - JsonPage("markAsKnown.ajax", webInterface) { +@ToadletPath("markAsKnown.ajax") +class MarkAsKnownAjaxPage @Inject constructor(webInterface: WebInterface) : JsonPage(webInterface) { override val requiresLogin = false