addition of new dashboard

This commit is contained in:
2026-08-20 15:08:32 +00:00
parent 0622018d95
commit bf59249ed7
161 changed files with 13170 additions and 119 deletions

View File

@@ -0,0 +1,17 @@
import { dashboardApi } from "./api.js";
const routes = {
'/api/v1/data/dashboard/summary': dashboardApi.summary,
'/api/v1/data/dashboard/transactions': dashboardApi.transactions,
'/api/v1/data/dashboard/series': dashboardApi.series,
'/api/v1/data/dashboard/verify': dashboardApi.verify,
'/api/v1/data/dashboard/event': dashboardApi.event,
};
export async function dispatch(url, input, userId) {
// hasOwn: a bare lookup resolves Object.prototype members to callables.
if (!Object.hasOwn(routes, url)) return null;
return routes[url](input, userId);
}
export const dashboard = { dispatch };