-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
🚅 Issue 한 줄 요약
users.controller.ts
🤷 Issue 세부 내용
import { Controller, Post, Body } from '@nestjs/common';
import { UsersService } from './users.service';
@Controller('users')
export class UsersController {
constructor(private readonly usersService: UsersService) {}
@Post('login')
async register(
@Body('username') username: string,
@Body('password') password: string,
) {
const user = await this.usersService.create(username, password);
return user;
}
}
✨ 기대 결과
📸 스크린샷
Metadata
Metadata
Assignees
Labels
No labels