fix api syntax error

This commit is contained in:
celebrateyang 2025-06-08 09:15:53 +08:00
parent a39728909e
commit aacf79f338

View File

@ -310,7 +310,10 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {
streamInfo.range = req.headers['range']; streamInfo.range = req.headers['range'];
} }
return stream(res, streamInfo); }); app.get('/', (_, res) => { return stream(res, streamInfo);
});
app.get('/', (_, res) => {
res.type('json'); res.type('json');
res.status(200).send(env.envFile ? getServerInfo() : serverInfo); res.status(200).send(env.envFile ? getServerInfo() : serverInfo);
}) })