Last active
May 3, 2024 23:39
-
-
Save illusi03/fa7a41079265d90a21f685b56a9ca241 to your computer and use it in GitHub Desktop.
Article Medium - Enhanced validation in Nest.js - STEP-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Body, Controller, Post } from '@nestjs/common'; | |
import { AppService } from './app.service'; | |
@Controller() | |
export class AppController { | |
constructor(private readonly appService: AppService) {} | |
@Post('/customer') | |
registerCustomer(@Body() body: any) { | |
return body; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment