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