|
@@ -2,6 +2,7 @@ import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
|
|
|
import { GraphQLFactory, GraphQLModule } from '@nestjs/graphql';
|
|
import { GraphQLFactory, GraphQLModule } from '@nestjs/graphql';
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
import { graphiqlExpress, graphqlExpress } from 'apollo-server-express';
|
|
import { graphiqlExpress, graphqlExpress } from 'apollo-server-express';
|
|
|
|
|
+import { AdministratorResolver } from './api/administrator/administrator.resolver';
|
|
|
import { AuthController } from './api/auth/auth.controller';
|
|
import { AuthController } from './api/auth/auth.controller';
|
|
|
import { CustomerController } from './api/customer/customer.controller';
|
|
import { CustomerController } from './api/customer/customer.controller';
|
|
|
import { CustomerResolver } from './api/customer/customer.resolver';
|
|
import { CustomerResolver } from './api/customer/customer.resolver';
|
|
@@ -9,6 +10,7 @@ import { ProductResolver } from './api/product/product.resolver';
|
|
|
import { AuthService } from './auth/auth.service';
|
|
import { AuthService } from './auth/auth.service';
|
|
|
import { JwtStrategy } from './auth/jwt.strategy';
|
|
import { JwtStrategy } from './auth/jwt.strategy';
|
|
|
import { PasswordService } from './auth/password.service';
|
|
import { PasswordService } from './auth/password.service';
|
|
|
|
|
+import { AdministratorService } from './service/administrator.service';
|
|
|
import { CustomerService } from './service/customer.service';
|
|
import { CustomerService } from './service/customer.service';
|
|
|
import { ProductVariantService } from './service/product-variant.service';
|
|
import { ProductVariantService } from './service/product-variant.service';
|
|
|
import { ProductService } from './service/product.service';
|
|
import { ProductService } from './service/product.service';
|
|
@@ -30,6 +32,8 @@ import { ProductService } from './service/product.service';
|
|
|
],
|
|
],
|
|
|
controllers: [AuthController, CustomerController],
|
|
controllers: [AuthController, CustomerController],
|
|
|
providers: [
|
|
providers: [
|
|
|
|
|
+ AdministratorResolver,
|
|
|
|
|
+ AdministratorService,
|
|
|
AuthService,
|
|
AuthService,
|
|
|
JwtStrategy,
|
|
JwtStrategy,
|
|
|
PasswordService,
|
|
PasswordService,
|