fix revoke issue, fix dialogs

This commit is contained in:
2026-08-08 19:09:46 +03:00
parent 1ca23ac699
commit e8b74e4152
9 changed files with 14 additions and 9 deletions
@@ -10,7 +10,7 @@ import ru.shadowsparky.vbox.backend.presentation.configureRouting
import ru.shadowsparky.vbox.backend.presentation.configureSerialization
import ru.shadowsparky.vbox.backend.presentation.configureWebSocket
@KoinApplication
@KoinApplication(modules = [BackendModule::class])
object VBoxBackend
fun main(args: Array<String>) {
@@ -28,6 +28,10 @@ fun Routing.setupAuthMethods(
post(AuthTokenRepository.UPDATE_PATH) {
call.respond(default.update(call.receive()))
}
post(AuthTokenRepository.REVOKE_PATH) {
default.revoke(call.receive())
call.respond(HttpStatusCode.OK)
}
authenticate(AUTH_JWT_NAME) {
setupBaseMethods(routingEntryPoint.videoApi)
setupSearch(searchFactory)
@@ -42,9 +46,5 @@ fun Routing.setupAuthMethods(
.changePassword(call.receive())
call.respond(HttpStatusCode.OK)
}
post(AuthTokenRepository.REVOKE_PATH) {
default.revoke(call.receive())
call.respond(HttpStatusCode.OK)
}
}
}