Skip to content

로그인 - users.controller.ts #7

Description

@pgb0930

🚅 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions