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.use(card).get(
|
||||
"/status/:status",
|
||||
({ params: { status } }) => {
|
||||
return fetch(
|
||||
async ({ params: { status }, set }) => {
|
||||
const res = await fetch(
|
||||
`http://mts.dgnr.us:3999/__error/${status}/testerror.astrxl.dev`,
|
||||
);
|
||||
set.headers["content-type"] = "text/html";
|
||||
return res.body;
|
||||
},
|
||||
{
|
||||
params: t.Object({
|
||||
|
||||
Reference in New Issue
Block a user