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 { JwtRefreshGuard } from '@/common/guards/jwt-refresh.guard';
|
||||||
import { RefreshTokenDto } from '@/features/auth/dto/refresh-token.dto';
|
import { RefreshTokenDto } from '@/features/auth/dto/refresh-token.dto';
|
||||||
import { SignInUserDto } from '@/features/auth/dto/signIn-user.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 { SignOutUserDto } from '@/features/auth/dto/signOut-user.dto';
|
||||||
|
import { SingUpUserDto } from '@/features/auth/dto/signUp-user.dto';
|
||||||
import {
|
import {
|
||||||
Body,
|
Body,
|
||||||
Controller,
|
Controller,
|
||||||
@@ -13,7 +13,6 @@ import {
|
|||||||
UseGuards,
|
UseGuards,
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import { AuthService } from './auth.service';
|
import { AuthService } from './auth.service';
|
||||||
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
|
|
||||||
|
|
||||||
@Controller('auth')
|
@Controller('auth')
|
||||||
export class AuthController {
|
export class AuthController {
|
||||||
@@ -25,7 +24,7 @@ export class AuthController {
|
|||||||
// @ApiOperation({ summary: 'Create a new user' })
|
// @ApiOperation({ summary: 'Create a new user' })
|
||||||
// @ApiResponse({ status: 201, description: 'User created successfully.' })
|
// @ApiResponse({ status: 201, description: 'User created successfully.' })
|
||||||
async singUp(@Body() payload: SingUpUserDto) {
|
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 };
|
||||||
// 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);
|
return await this.authService.refreshToken(refreshTokenDto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Public()
|
||||||
|
@HttpCode(200)
|
||||||
|
@Post('test')
|
||||||
|
async test() {
|
||||||
|
return 'aplication test success';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user