mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix csv download not being blocked
This commit is contained in:
parent
dc8c35695d
commit
ee436d982c
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ function setupRoutes(router: Router) {
|
|||
if (config.postgres?.enabled) {
|
||||
router.get("/database", (req, res) => dumpDatabase(req, res, true));
|
||||
router.get("/database.json", (req, res) => dumpDatabase(req, res, false));
|
||||
router.get("/database/*", downloadFile);
|
||||
router.get("/database/*", (req, res) => res.status(404).send("CSV downloads disabled. Please use sb-mirror rsync"));
|
||||
router.use("/download", (req, res) => res.status(404).send("CSV downloads disabled. Please use sb-mirror rsync"));
|
||||
} else {
|
||||
router.get("/database.db", function (req: Request, res: Response) {
|
||||
|
|
Loading…
Reference in a new issue