Created
March 27, 2025 18:25
-
-
Save Vatsalya-singhi/73f97f6431a426914d8eb068b730e384 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 { Controller, Get } from '@nestjs/common'; | |
@Controller('users') // Base route: /users | |
export class UsersController { | |
@Get() // Handles GET /users | |
findAll(): string { | |
return 'This action returns all users'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment