X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FDistrustAjaxPage.kt;h=cbeed6e41a2dad4d7a88d7515ac3887f32e4e29b;hp=e4f23276f8f15cb70e4978cd877311fefb6130c1;hb=ca45de0dcbd2e361ab630bbee1d47ff6cf34d97c;hpb=c12bed3557f3f1d80c9694a778fcaf3429b04073 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/DistrustAjaxPage.kt b/src/main/kotlin/net/pterodactylus/sone/web/ajax/DistrustAjaxPage.kt index e4f2327..cbeed6e 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/ajax/DistrustAjaxPage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/ajax/DistrustAjaxPage.kt @@ -12,8 +12,8 @@ import javax.inject.* * * @see Core.distrustSone(Sone, Sone) */ -class DistrustAjaxPage @Inject constructor(webInterface: WebInterface) : - LoggedInJsonPage("distrustSone.ajax", webInterface) { +@ToadletPath("distrustSone.ajax") +class DistrustAjaxPage @Inject constructor(webInterface: WebInterface) : LoggedInJsonPage(webInterface) { override fun createJsonObject(currentSone: Sone, request: FreenetRequest) = request.parameters["sone"]