mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2026-02-07 18:56:12 +01:00
removed vulnerabilities
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
|
||||
import { AuthService } from './auth.service';
|
||||
import { AuthLoginDto, AuthRegisterDto } from './dto';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
@ApiTags('auth')
|
||||
@Controller('auth')
|
||||
export class AuthController {
|
||||
constructor(private authService: AuthService) {}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { Controller, Get, UseGuards } from '@nestjs/common';
|
||||
import { GetUser } from '../auth/decorator';
|
||||
import { JwtGuard } from '../auth/guard';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { UserService } from './user.service';
|
||||
import { User } from '@prisma/client';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
@ApiTags('user')
|
||||
@UseGuards(JwtGuard)
|
||||
|
||||
Reference in New Issue
Block a user