Spaces:
Build error
Build error
saas: audition
Browse files- src/stand-alone/serp.ts +2 -0
- thinapps-shared +1 -1
src/stand-alone/serp.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { AsyncLocalContext } from '../services/async-context';
|
|
| 19 |
import finalizer, { Finalizer } from '../services/finalizer';
|
| 20 |
import { SerpHost } from '../api/serp';
|
| 21 |
import koaCompress from 'koa-compress';
|
|
|
|
| 22 |
|
| 23 |
@singleton()
|
| 24 |
export class SERPStandAloneServer extends KoaServer {
|
|
@@ -107,6 +108,7 @@ export class SERPStandAloneServer extends KoaServer {
|
|
| 107 |
}
|
| 108 |
|
| 109 |
registerRoutes(): void {
|
|
|
|
| 110 |
this.koaApp.use(koaCompress({
|
| 111 |
filter(type) {
|
| 112 |
if (type.startsWith('text/')) {
|
|
|
|
| 19 |
import finalizer, { Finalizer } from '../services/finalizer';
|
| 20 |
import { SerpHost } from '../api/serp';
|
| 21 |
import koaCompress from 'koa-compress';
|
| 22 |
+
import { getAuditionMiddleware } from '../shared/utils/audition';
|
| 23 |
|
| 24 |
@singleton()
|
| 25 |
export class SERPStandAloneServer extends KoaServer {
|
|
|
|
| 108 |
}
|
| 109 |
|
| 110 |
registerRoutes(): void {
|
| 111 |
+
this.koaApp.use(getAuditionMiddleware());
|
| 112 |
this.koaApp.use(koaCompress({
|
| 113 |
filter(type) {
|
| 114 |
if (type.startsWith('text/')) {
|
thinapps-shared
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
Subproject commit
|
|
|
|
| 1 |
+
Subproject commit 6df12b642f65df2a6d8b4b745e53f74eda93c10a
|