feat(datamart): intial foundation of the datamart setup

this will allow for faster datamart addtions and updates
This commit is contained in:
2025-12-23 19:30:34 -06:00
parent 1b200147b7
commit ea72fd10cd
8 changed files with 122 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import type { Express } from "express";
import runQuery from "./getDatamart.route.js";
export const setupDatamartRoutes = (baseUrl: string, app: Express) => {
//setup all the routes
app.use(`${baseUrl}/api/datamart`, runQuery);
app.all("*foo", (_, res) => {
res.status(400).json({
message: "You have encountered a datamart route that dose not exist",
});
});
};