fix: add html header

This commit is contained in:
2026-05-08 03:09:36 +07:00 Unverified
parent e3e1c57497
commit 651d1ead33
+4 -2
View File
@@ -7,10 +7,12 @@ export function v1routes(app: App) {
app.group("/v1", (app) => app.group("/v1", (app) =>
app.use(card).get( app.use(card).get(
"/status/:status", "/status/:status",
({ params: { status } }) => { async ({ params: { status }, set }) => {
return fetch( const res = await fetch(
`http://mts.dgnr.us:3999/__error/${status}/testerror.astrxl.dev`, `http://mts.dgnr.us:3999/__error/${status}/testerror.astrxl.dev`,
); );
set.headers["content-type"] = "text/html";
return res.body;
}, },
{ {
params: t.Object({ params: t.Object({