mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-07-31 01:06:59 +08:00
fix: serp index
This commit is contained in:
parent
b58a2db69a
commit
f4d0eade60
@ -149,7 +149,7 @@ export class SerpHost extends RPCHost {
|
|||||||
const uid = await auth.solveUID();
|
const uid = await auth.solveUID();
|
||||||
if (!q) {
|
if (!q) {
|
||||||
if (ctx.path === '/') {
|
if (ctx.path === '/') {
|
||||||
const indexObject = this.getIndex(ctx, auth);
|
const indexObject = await this.getIndex(ctx, auth);
|
||||||
if (!ctx.accepts('text/plain') && (ctx.accepts('text/json') || ctx.accepts('application/json'))) {
|
if (!ctx.accepts('text/plain') && (ctx.accepts('text/json') || ctx.accepts('application/json'))) {
|
||||||
return indexObject;
|
return indexObject;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user