Skip to content

Commit

Permalink
feat: auth controller
Browse files Browse the repository at this point in the history
  • Loading branch information
aniebietafia committed Sep 1, 2024
1 parent 7466b9a commit d3ab958
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions brints-estate-api/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import { Controller, Post, Body, HttpStatus, UseFilters } from '@nestjs/common';
import { Controller, Post, Body, HttpStatus } from '@nestjs/common';
import { AuthService } from './providers/auth.service';
import { CreateUserDto } from 'src/users/dto/create-user.dto';
import { CreateUserAuthDto } from 'src/users/dto/create-userauth.dto';
import { ApiTags } from '@nestjs/swagger';
import { HttpExceptionFilter } from 'src/exceptions/http-exception.filter';

@Controller('auth')
@ApiTags('Auth')
export class AuthController {
constructor(private readonly authService: AuthService) {}

@UseFilters(HttpExceptionFilter)
@Post('register')
async registerUser(
@Body()
Expand Down

0 comments on commit d3ab958

Please sign in to comment.