Fix user counter not working

This commit is contained in:
Ajay Ramachandran 2021-10-12 21:19:37 -04:00
parent 656e35c080
commit 9cdccbe7f0

View file

@ -56,7 +56,7 @@ export function createServer(callback: () => void): Server {
router.use("/api/", apiCspMiddleware);
router.use(express.json());
if (config.userCounterURL) app.use(userCounter);
if (config.userCounterURL) router.use(userCounter);
// Setup pretty JSON
if (config.mode === "development") app.set("json spaces", 2);