Add leaderboard for dearrow

This commit is contained in:
Ajay
2023-07-07 14:32:45 -04:00
parent d1d2b011f8
commit d030de83bd
2 changed files with 45 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ import { postBranding } from "./routes/postBranding";
import { cacheMiddlware } from "./middleware/etag";
import { hostHeader } from "./middleware/hostHeader";
import { getBrandingStats } from "./routes/getBrandingStats";
import { getTopBrandingUsers } from "./routes/getTopBrandingUsers";
export function createServer(callback: () => void): Server {
// Create a service (the app object is just a callback).
@@ -141,6 +142,7 @@ function setupRoutes(router: Router) {
router.get("/api/getTopUsers", getTopUsers);
router.get("/api/getTopCategoryUsers", getTopCategoryUsers);
router.get("/api/getTopBrandingUsers", getTopBrandingUsers);
//send out totals
//send the total submissions, total views and total minutes saved