Skip to content

Instantly share code, notes, and snippets.

@Vatsalya-singhi
Created March 27, 2025 18:28
Show Gist options
  • Save Vatsalya-singhi/f2bef9686be07792537cb25ff0173e51 to your computer and use it in GitHub Desktop.
Save Vatsalya-singhi/f2bef9686be07792537cb25ff0173e51 to your computer and use it in GitHub Desktop.
import { Module } from '@nestjs/common';
import { UsersController } from './users.controller';
import { UsersService } from './users.service';
@Module({
controllers: [UsersController], // Registers the controller
providers: [UsersService], // Registers the service
exports: [UsersService], // Allows other modules to use UsersService
imports: []
})
export class UsersModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment