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 {