MCPcopy Create free account
hub / github.com/pollinations/pollinations / getWeeklyRegistrations

Function getWeeklyRegistrations

apps/operation/kpi/src/api/enter.js:3–8  ·  view source on GitHub ↗
(weeksBack = 12)

Source from the content-addressed store, hash-verified

1// Calls worker API (no secrets in frontend)
2
3export async function getWeeklyRegistrations(weeksBack = 12) {
4 const res = await fetch(`/api/kpi/registrations?weeks_back=${weeksBack}`);
5 if (!res.ok) return null;
6 const data = await res.json();
7 return data.data;
8}
9
10export async function getTotalUsers() {
11 const res = await fetch("/api/kpi/total-users");

Callers 1

fetchAllDataFunction · 0.90

Calls 2

jsonMethod · 0.80
fetchFunction · 0.50

Tested by

no test coverage detected