mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
fix api syntax error
This commit is contained in:
parent
a39728909e
commit
aacf79f338
@ -310,7 +310,10 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {
|
||||
streamInfo.range = req.headers['range'];
|
||||
}
|
||||
|
||||
return stream(res, streamInfo); }); app.get('/', (_, res) => {
|
||||
return stream(res, streamInfo);
|
||||
});
|
||||
|
||||
app.get('/', (_, res) => {
|
||||
res.type('json');
|
||||
res.status(200).send(env.envFile ? getServerInfo() : serverInfo);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user