mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Fix user counter not working
This commit is contained in:
parent
656e35c080
commit
9cdccbe7f0
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ export function createServer(callback: () => void): Server {
|
||||||
router.use("/api/", apiCspMiddleware);
|
router.use("/api/", apiCspMiddleware);
|
||||||
router.use(express.json());
|
router.use(express.json());
|
||||||
|
|
||||||
if (config.userCounterURL) app.use(userCounter);
|
if (config.userCounterURL) router.use(userCounter);
|
||||||
|
|
||||||
// Setup pretty JSON
|
// Setup pretty JSON
|
||||||
if (config.mode === "development") app.set("json spaces", 2);
|
if (config.mode === "development") app.set("json spaces", 2);
|
||||||
|
|
Loading…
Reference in a new issue