fix: 恢复小程序上传配置并固定产物目录
This commit is contained in:
1 parent
ad949ab370
commit
26f1157083
5 files changed
+137
-21
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import "reflect-metadata";
|
||||
import { Controller, Get, Module, ValidationPipe } from "@nestjs/common";
|
||||
import { APP_GUARD } from "@nestjs/core";
|
||||
import type { NestFastifyApplication } from "@nestjs/platform-fastify";
|
||||
import { PrismaService } from "./prisma.service.js";
|
||||
import { WechatAuthService } from "./wechat-auth.js";
|
||||
@@ -72,6 +73,7 @@ export class HealthController {
|
||||
AdminLocalUploadController,
|
||||
],
|
||||
providers: [
|
||||
{ provide: APP_GUARD, useClass: AdminMembershipGuard },
|
||||
PrismaService,
|
||||
WechatAuthService,
|
||||
BookingService,
|
||||
@@ -92,7 +94,6 @@ export class HealthController {
|
||||
export class AppModule {}
|
||||
|
||||
export function configureApp(app: NestFastifyApplication): void {
|
||||
app.useGlobalGuards(app.get(AdminMembershipGuard));
|
||||
app.useGlobalPipes(
|
||||
new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true }),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user