mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-19 01:55:53 +08:00
saas: audition
This commit is contained in:
parent
5a7f2a4cb8
commit
65db6ec9d9
@ -19,6 +19,7 @@ import { AsyncLocalContext } from '../services/async-context';
|
|||||||
import finalizer, { Finalizer } from '../services/finalizer';
|
import finalizer, { Finalizer } from '../services/finalizer';
|
||||||
import { SerpHost } from '../api/serp';
|
import { SerpHost } from '../api/serp';
|
||||||
import koaCompress from 'koa-compress';
|
import koaCompress from 'koa-compress';
|
||||||
|
import { getAuditionMiddleware } from '../shared/utils/audition';
|
||||||
|
|
||||||
@singleton()
|
@singleton()
|
||||||
export class SERPStandAloneServer extends KoaServer {
|
export class SERPStandAloneServer extends KoaServer {
|
||||||
@ -107,6 +108,7 @@ export class SERPStandAloneServer extends KoaServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
registerRoutes(): void {
|
registerRoutes(): void {
|
||||||
|
this.koaApp.use(getAuditionMiddleware());
|
||||||
this.koaApp.use(koaCompress({
|
this.koaApp.use(koaCompress({
|
||||||
filter(type) {
|
filter(type) {
|
||||||
if (type.startsWith('text/')) {
|
if (type.startsWith('text/')) {
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit f89255cd6546641f72eefba140a4aef96a0e03fc
|
Subproject commit 6df12b642f65df2a6d8b4b745e53f74eda93c10a
|
Loading…
x
Reference in New Issue
Block a user