refactor(opendock): added some new goodies to the app to help manage releases
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m24s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m24s
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { Express } from "express";
|
||||
import { requireAuth } from "../middleware/auth.middleware.js";
|
||||
import { featureCheck } from "../middleware/featureActive.middleware.js";
|
||||
import undo from "./openDockUndoLastStatus.js";
|
||||
import articleCheck from "./opendock.articleCheck.route.js";
|
||||
|
||||
import getApt from "./opendockGetRelease.route.js";
|
||||
import getApt from "./opendockRelease.route.js";
|
||||
|
||||
export const setupOpendockRoutes = (baseUrl: string, app: Express) => {
|
||||
//setup all the routes
|
||||
@@ -21,4 +21,11 @@ export const setupOpendockRoutes = (baseUrl: string, app: Express) => {
|
||||
requireAuth,
|
||||
articleCheck,
|
||||
);
|
||||
|
||||
app.use(
|
||||
`${baseUrl}/api/opendock/undo-latest-status`,
|
||||
featureCheck("opendock_sync"),
|
||||
requireAuth,
|
||||
undo,
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user