resturant module
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { EntityRepository } from '@mikro-orm/postgresql';
|
||||
import type { Restaurant } from '../entities/restaurant.entity';
|
||||
|
||||
// import { PaginationUtils } from '../../utils/services/pagination.utils';
|
||||
|
||||
export class RestRepository extends EntityRepository<Restaurant> {}
|
||||
@@ -1,9 +1,14 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { RestaurantsService } from './restaurants.service';
|
||||
import { RestaurantsController } from './restaurants.controller';
|
||||
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
||||
import { Restaurant } from './entities/restaurant.entity';
|
||||
import { RestRepository } from './repositories/rest.repository';
|
||||
|
||||
@Module({
|
||||
controllers: [RestaurantsController],
|
||||
providers: [RestaurantsService],
|
||||
providers: [RestaurantsService, RestRepository],
|
||||
imports: [MikroOrmModule.forFeature([Restaurant])],
|
||||
exports: [RestRepository],
|
||||
})
|
||||
export class RestaurantsModule {}
|
||||
|
||||
Reference in New Issue
Block a user