fix: serp index

This commit is contained in:
Yanlong Wang 2025-04-02 16:17:30 +08:00
parent b58a2db69a
commit f4d0eade60
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -149,7 +149,7 @@ export class SerpHost extends RPCHost {
const uid = await auth.solveUID();
if (!q) {
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'))) {
return indexObject;
}