1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17import { Body, Controller, Post } from '@nestjs/common';
import { UsersService } from './users.service';
import { JoinRequestDto } from './dto/join-user.dto';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
@ApiTags('USERS')
@Controller('api/users')
export class UsersController {
constructor(private readonly usersService: UsersService) {}
@ApiOperation({ summary: 'ํ์๊ฐ์
' })
@Post()
async signUp(@Body() body: JoinRequestDto) {
return await this.usersService.signUp(body);
}
}