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 { Module } from '@nestjs/common';
|
||||||
import { GenresService } from './genres.service';
|
import { GenresService } from './genres.service';
|
||||||
import { GenresController } from './genres.controller';
|
import { GenresController } from './genres.controller';
|
||||||
|
import { MongooseModule } from '@nestjs/mongoose';
|
||||||
|
import { GenreSchema } from './schema/genres.schema';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
|
imports: [
|
||||||
|
MongooseModule.forFeature([
|
||||||
|
{
|
||||||
|
name: 'Genre',
|
||||||
|
schema: GenreSchema,
|
||||||
|
collection: 'genres',
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
],
|
||||||
controllers: [GenresController],
|
controllers: [GenresController],
|
||||||
providers: [GenresService],
|
providers: [GenresService],
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue