mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix format
This commit is contained in:
parent
fe11abe6ec
commit
72245888de
1 changed files with 8 additions and 2 deletions
10
api/index.ts
10
api/index.ts
|
|
@ -84,7 +84,10 @@ async function app(req: Request): Promise<Response> {
|
||||||
error.render(),
|
error.render(),
|
||||||
{
|
{
|
||||||
status: error.status,
|
status: error.status,
|
||||||
headers: new Headers({ "Content-Type": "text", "Cache-Control": `public, max-age=${CONSTANTS.CACHE_MAX_AGE}`}),
|
headers: new Headers({
|
||||||
|
"Content-Type": "text",
|
||||||
|
"Cache-Control": `public, max-age=${CONSTANTS.CACHE_MAX_AGE}`,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -127,7 +130,10 @@ async function app(req: Request): Promise<Response> {
|
||||||
ErrorPage({ error: userResponseInfo }).render(),
|
ErrorPage({ error: userResponseInfo }).render(),
|
||||||
{
|
{
|
||||||
status: userResponseInfo.code,
|
status: userResponseInfo.code,
|
||||||
headers: new Headers({ "Content-Type": "text", "Cache-Control": `public, max-age=${CONSTANTS.CACHE_MAX_AGE}` }),
|
headers: new Headers({
|
||||||
|
"Content-Type": "text",
|
||||||
|
"Cache-Control": `public, max-age=${CONSTANTS.CACHE_MAX_AGE}`,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue