-
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