refactor
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user