This commit is contained in:
2025-12-21 22:35:38 +01:00
parent 3c64f328e2
commit 9bd2e630e6
38 changed files with 736 additions and 684 deletions

View File

@@ -1,6 +1,7 @@
import { Controller, Get, Post, Body } from '@nestjs/common';
import { AuthService } from './AuthService';
import { LoginParams, SignupParams, AuthSessionDTO } from './dtos/AuthDto';
import type { CommandResultDTO } from './presenters/CommandResultPresenter';
@Controller('auth')
export class AuthController {
@@ -22,7 +23,7 @@ export class AuthController {
}
@Post('logout')
async logout(): Promise<{ success: boolean }> {
async logout(): Promise<CommandResultDTO> {
return this.authService.logout();
}
}