shouldAuthorizeApi refactor

This commit is contained in:
Jan Prochazka
2024-07-26 14:07:06 +02:00
parent 8864c3489d
commit 6a942a5058
2 changed files with 2 additions and 9 deletions

View File

@@ -85,9 +85,7 @@ function start() {
});
}
if (auth.shouldAuthorizeApi()) {
app.use(auth.authMiddleware);
}
app.use(auth.authMiddleware);
app.get(getExpressPath('/stream'), async function (req, res) {
const strmid = req.query.strmid;