chore: change the login and regitster flow to single route
This commit is contained in:
@@ -5,34 +5,28 @@ import { TypeOrmModule } from "@nestjs/typeorm";
|
||||
|
||||
import { NOTIFICATION } from "./constants";
|
||||
import { Notification } from "./entities/notification.entity";
|
||||
import { BlogCommentHandler } from "./handlers/blog-comment.handler";
|
||||
import { NotificationController } from "./notifications.controller";
|
||||
import { LoggerModule } from "../logger/logger.module";
|
||||
import {
|
||||
AnnouncementHandler,
|
||||
AnswerTicketHandler,
|
||||
ApproveInvoiceHandler,
|
||||
AssignTicketHandler,
|
||||
BillInvoiceHandler,
|
||||
BillInvoiceReminderHandler,
|
||||
BlockServiceHandler,
|
||||
BlogCommentHandler,
|
||||
CreateInvoiceHandler,
|
||||
CreateTicketHandler,
|
||||
InvoiceOverdueHandler,
|
||||
NewCriticismHandler,
|
||||
NewCustomerHandler,
|
||||
NewSubscriptionHandler,
|
||||
NewTicketHandler,
|
||||
NotificationHandlerFactory,
|
||||
OtpHandler,
|
||||
PaymentCancellationHandler,
|
||||
PaymentReminderHandler,
|
||||
RecurringInvoiceHandler,
|
||||
ServiceReviewHandler,
|
||||
UserLoginHandler,
|
||||
WalletChargeHandler,
|
||||
WalletDeductionHandler,
|
||||
} from "./handlers";
|
||||
import { NotificationController } from "./notifications.controller";
|
||||
import { LoggerModule } from "../logger/logger.module";
|
||||
} from "./handlers/admin-notifications.handler";
|
||||
import { AnnouncementHandler } from "./handlers/announcement.handler";
|
||||
import {
|
||||
ApproveInvoiceHandler,
|
||||
BillInvoiceHandler,
|
||||
BillInvoiceReminderHandler,
|
||||
CreateInvoiceHandler,
|
||||
InvoiceOverdueHandler,
|
||||
RecurringInvoiceHandler,
|
||||
} from "./handlers/invoice.handler";
|
||||
import { PaymentCancellationHandler, PaymentReminderHandler } from "./handlers/payment.handler";
|
||||
import { BlockServiceHandler } from "./handlers/service.handler";
|
||||
import { AnswerTicketHandler, AssignTicketHandler, CreateTicketHandler, NewTicketHandler } from "./handlers/ticket.handler";
|
||||
import { UserPasswordHandler } from "./handlers/user-password.handler";
|
||||
import { NotificationsService } from "./providers/notifications.service";
|
||||
import { NotificationProcessor } from "./queue/notification.processor";
|
||||
import { NotificationQueue } from "./queue/notification.queue";
|
||||
@@ -40,6 +34,10 @@ import { NotificationRepository } from "./repositories/notifications.repository"
|
||||
import { NotificationSetting } from "../settings/entities/notification-setting.entity";
|
||||
import { SettingModule } from "../settings/settings.module";
|
||||
import { UtilsModule } from "../utils/utils.module";
|
||||
import { NotificationHandlerFactory } from "./handlers/notification-handler.factory";
|
||||
import { OtpHandler } from "./handlers/otp.handler";
|
||||
import { UserLoginHandler } from "./handlers/user-login.handler";
|
||||
import { WalletChargeHandler, WalletDeductionHandler } from "./handlers/wallet.handler";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -92,6 +90,7 @@ import { UtilsModule } from "../utils/utils.module";
|
||||
BlockServiceHandler,
|
||||
PaymentReminderHandler,
|
||||
PaymentCancellationHandler,
|
||||
UserPasswordHandler,
|
||||
],
|
||||
controllers: [NotificationController],
|
||||
exports: [NotificationRepository, NotificationsService, NotificationQueue],
|
||||
|
||||
Reference in New Issue
Block a user