Genres: complete module
This commit is contained in:
parent
e6755b39ed
commit
5591101e64
1 changed files with 11 additions and 0 deletions
|
|
@ -1,8 +1,19 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
import { GenresService } from './genres.service';
|
||||
import { GenresController } from './genres.controller';
|
||||
import { MongooseModule } from '@nestjs/mongoose';
|
||||
import { GenreSchema } from './schema/genres.schema';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
MongooseModule.forFeature([
|
||||
{
|
||||
name: 'Genre',
|
||||
schema: GenreSchema,
|
||||
collection: 'genres',
|
||||
},
|
||||
]),
|
||||
],
|
||||
controllers: [GenresController],
|
||||
providers: [GenresService],
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue