/**
* Base JSON page for all pages that require the user to be logged in.
*/
-open class LoggedInJsonPage(path: String, webInterface: WebInterface) : JsonPage(path, webInterface) {
+open class LoggedInJsonPage(webInterface: WebInterface) : JsonPage(webInterface) {
- final override fun requiresLogin() = true
+ final override val requiresLogin = true
final override fun createJsonObject(request: FreenetRequest) =
createJsonObject(getCurrentSone(request.toadletContext)!!, request)
- open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest) =
+ open protected fun createJsonObject(currentSone: Sone, request: FreenetRequest): JsonReturnObject =
createErrorJsonObject("not-implemented")
}