fix revoke issue, fix dialogs
This commit is contained in:
@@ -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>) {
|
||||
|
||||
+4
-4
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user