X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FTrustAjaxPage.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FTrustAjaxPage.kt;h=9f0de8701ab7ea07299d6ef6528f434c833ea897;hp=bfb88b730cc550e07c5d141c5899c7f2dfd05f7c;hb=ca45de0dcbd2e361ab630bbee1d47ff6cf34d97c;hpb=c12bed3557f3f1d80c9694a778fcaf3429b04073 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/TrustAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/TrustAjaxPage.kt index bfb88b7..9f0de87 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/TrustAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/TrustAjaxPage.kt @@ -11,8 +11,8 @@ import javax.inject.* * * @see net.pterodactylus.sone.core.Core.trustSone */ -class TrustAjaxPage @Inject constructor(webInterface: WebInterface) : - LoggedInJsonPage("trustSone.ajax", webInterface) { +@ToadletPath("trustSone.ajax") +class TrustAjaxPage @Inject constructor(webInterface: WebInterface) : LoggedInJsonPage(webInterface) { override fun createJsonObject(currentSone: Sone, request: FreenetRequest) = request.parameters["sone"]