feat(leases): added in leases and move table to reuseable component

This commit is contained in:
2025-11-04 20:16:14 -06:00
parent b1c56ee4bb
commit bd7bea8db6
30 changed files with 5788 additions and 601 deletions

View File

@@ -1,9 +1,14 @@
import type { Express, Request, Response } from "express";
import { requireAuth } from "../../../pkg/middleware/authMiddleware.js";
import companies from "./companies/companiesRoutes.js";
import leases from "./leases/leaseRoutes.js";
export const setupForkliftRoutes = (app: Express, basePath: string) => {
app.use(
basePath + "/api/forklifts/companies", // will pass bc system admin but this is just telling us we need this
companies,
);
app.use(
basePath + "/api/forklifts/leases", // will pass bc system admin but this is just telling us we need this
leases,
);
};