From 65db6ec9d94b8972d750ef1f506f65b47992097e Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Fri, 18 Apr 2025 17:03:36 +0800 Subject: [PATCH] saas: audition --- src/stand-alone/serp.ts | 2 ++ thinapps-shared | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stand-alone/serp.ts b/src/stand-alone/serp.ts index 0c039d7..76c91fc 100644 --- a/src/stand-alone/serp.ts +++ b/src/stand-alone/serp.ts @@ -19,6 +19,7 @@ import { AsyncLocalContext } from '../services/async-context'; import finalizer, { Finalizer } from '../services/finalizer'; import { SerpHost } from '../api/serp'; import koaCompress from 'koa-compress'; +import { getAuditionMiddleware } from '../shared/utils/audition'; @singleton() export class SERPStandAloneServer extends KoaServer { @@ -107,6 +108,7 @@ export class SERPStandAloneServer extends KoaServer { } registerRoutes(): void { + this.koaApp.use(getAuditionMiddleware()); this.koaApp.use(koaCompress({ filter(type) { if (type.startsWith('text/')) { diff --git a/thinapps-shared b/thinapps-shared index f89255c..6df12b6 160000 --- a/thinapps-shared +++ b/thinapps-shared @@ -1 +1 @@ -Subproject commit f89255cd6546641f72eefba140a4aef96a0e03fc +Subproject commit 6df12b642f65df2a6d8b4b745e53f74eda93c10a