From 8fa7283207e307a0eafb67db5fd1b64b628d3bbd Mon Sep 17 00:00:00 2001 From: NathanFallet Date: Mon, 29 Jan 2024 13:46:34 +0100 Subject: [PATCH] fixing auth documentation (now right) --- .../me/nathanfallet/extopy/controllers/auth/AuthController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extopy-backend/src/commonMain/kotlin/me/nathanfallet/extopy/controllers/auth/AuthController.kt b/extopy-backend/src/commonMain/kotlin/me/nathanfallet/extopy/controllers/auth/AuthController.kt index 6ef3086..faba455 100644 --- a/extopy-backend/src/commonMain/kotlin/me/nathanfallet/extopy/controllers/auth/AuthController.kt +++ b/extopy-backend/src/commonMain/kotlin/me/nathanfallet/extopy/controllers/auth/AuthController.kt @@ -78,9 +78,9 @@ class AuthController( return super.authorize(call, client) } - @APIMapping("createToken", "Create a token") + @APIMapping @CreateModelPath("/token") - @DocumentedType(AuthToken::class) + @DocumentedTag("Auth") @DocumentedError(400, "auth_invalid_code") @DocumentedError(500, "error_internal") override suspend fun token(call: ApplicationCall, @Payload request: AuthRequest): AuthToken {