From 5b02b574290e573552010140964969f11d8b311f Mon Sep 17 00:00:00 2001 From: Sergio Ramirez Date: Mon, 16 Jun 2025 23:50:28 -0400 Subject: [PATCH] anexado test de healthy --- apps/api/src/features/auth/auth.controller.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/api/src/features/auth/auth.controller.ts b/apps/api/src/features/auth/auth.controller.ts index b856470..e1509e5 100644 --- a/apps/api/src/features/auth/auth.controller.ts +++ b/apps/api/src/features/auth/auth.controller.ts @@ -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'; + } }