added opendock apt check route

This commit is contained in:
2026-02-20 12:17:39 -06:00
parent 5469a0dc5c
commit a8af021621
4 changed files with 52 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import { type Express, Router } from "express";
import { requireAuth } from "../middleware/auth.middleware.js";
import getApt from "./opendockGetRelease.route.js";
export const setupOpendockRoutes = (baseUrl: string, app: Express) => {
//setup all the routes
// Apply auth to entire router
const router = Router();
router.use(requireAuth);
router.use(getApt);
app.use(`${baseUrl}/api/opendock`, router);
};