anexado test de healthy

This commit is contained in:
2025-06-16 23:50:28 -04:00
parent 1e44188b50
commit 5b02b57429

View File

@@ -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,7 +24,7 @@ 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)
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';
}
}