Add branding stats

This commit is contained in:
Ajay
2023-06-14 19:50:26 -04:00
parent 633f128e90
commit fa6919a1d0
2 changed files with 103 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ import { getBranding, getBrandingByHashEndpoint } from "./routes/getBranding";
import { postBranding } from "./routes/postBranding";
import { cacheMiddlware } from "./middleware/etag";
import { hostHeader } from "./middleware/hostHeader";
import { getBrandingStats } from "./routes/getBrandingStats";
export function createServer(callback: () => void): Server {
// Create a service (the app object is just a callback).
@@ -145,6 +146,8 @@ function setupRoutes(router: Router) {
//send the total submissions, total views and total minutes saved
router.get("/api/getTotalStats", getTotalStats);
router.get("/api/brandingStats", getBrandingStats);
router.get("/api/getUserInfo", getUserInfo);
router.get("/api/userInfo", getUserInfo);