anexado test de healthy
This commit is contained in:
@@ -2,8 +2,8 @@ import { Public } from '@/common/decorators';
|
||||
import { JwtRefreshGuard } from '@/common/guards/jwt-refresh.guard';
|
||||
import { RefreshTokenDto } from '@/features/auth/dto/refresh-token.dto';
|
||||
import { SignInUserDto } from '@/features/auth/dto/signIn-user.dto';
|
||||
import { SingUpUserDto } from '@/features/auth/dto/signUp-user.dto';
|
||||
import { SignOutUserDto } from '@/features/auth/dto/signOut-user.dto';
|
||||
import { SingUpUserDto } from '@/features/auth/dto/signUp-user.dto';
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
@@ -13,7 +13,6 @@ import {
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { AuthService } from './auth.service';
|
||||
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
|
||||
|
||||
@Controller('auth')
|
||||
export class AuthController {
|
||||
@@ -25,8 +24,8 @@ export class AuthController {
|
||||
// @ApiOperation({ summary: 'Create a new user' })
|
||||
// @ApiResponse({ status: 201, description: 'User created successfully.' })
|
||||
async singUp(@Body() payload: SingUpUserDto) {
|
||||
const data = await this.authService.singUp(payload)
|
||||
return { message: 'User created successfully', data};
|
||||
const data = await this.authService.singUp(payload);
|
||||
return { message: 'User created successfully', data };
|
||||
// return { message: 'User created successfully', data };
|
||||
}
|
||||
|
||||
@@ -57,5 +56,10 @@ export class AuthController {
|
||||
return await this.authService.refreshToken(refreshTokenDto);
|
||||
}
|
||||
|
||||
|
||||
@Public()
|
||||
@HttpCode(200)
|
||||
@Post('test')
|
||||
async test() {
|
||||
return 'aplication test success';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user