fix: add html header
This commit is contained in:
+4
-2
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user