Time Migration

This commit is contained in:
2025-12-14 17:14:50 +01:00
parent 1281976ec3
commit 5270313b3d
5 changed files with 278 additions and 1 deletions

View File

@@ -35,6 +35,9 @@ import resourceRoutes from "./routes/resources/main";
//M2M
import authM2m from "./plugins/auth.m2m";
import helpdeskInboundEmailRoutes from "./routes/helpdesk.inbound.email";
import deviceRoutes from "./routes/internal/devices";
import tenantRoutesInternal from "./routes/internal/tenant";
import staffTimeRoutesInternal from "./routes/internal/time";
import {sendMail} from "./utils/mailer";
import {loadSecrets, secrets} from "./utils/secrets";
@@ -91,6 +94,9 @@ async function main() {
await app.register(async (m2mApp) => {
await m2mApp.register(authM2m)
await m2mApp.register(helpdeskInboundEmailRoutes)
await m2mApp.register(deviceRoutes)
await m2mApp.register(tenantRoutesInternal)
await m2mApp.register(staffTimeRoutesInternal)
},{prefix: "/internal"})