import { Body, Controller, Post } from '@nestjs/common'; @Controller('auth') export class AuthController { @Post('register') register(@Body() body: Record) { return { status: 'todo', action: 'register', received: body }; } @Post('login') login(@Body() body: Record) { return { status: 'todo', action: 'login', received: body }; } @Post('refresh') refresh(@Body() body: Record) { return { status: 'todo', action: 'refresh', received: body }; } }