feat: add NotificationsController with SSE stream endpoint

This commit is contained in:
2026-07-05 23:09:30 +08:00
parent ce36a92482
commit 14a24a14b3
2 changed files with 81 additions and 0 deletions

View File

@@ -2,9 +2,11 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Notification } from '../entities/notification.entity';
import { NotificationsService } from './notifications.service';
import { NotificationsController } from './notifications.controller';
@Module({
imports: [TypeOrmModule.forFeature([Notification])],
controllers: [NotificationsController],
providers: [NotificationsService],
exports: [NotificationsService],
})