fix(app): required auth was in wrong spot caused entire app to want you logged in

This commit is contained in:
2026-05-12 12:02:59 -05:00
parent a9c69250bd
commit d2a9e1d110
12 changed files with 31 additions and 48 deletions

View File

@@ -8,11 +8,10 @@ export const setupGPSqlRoutes = (baseUrl: string, app: Express) => {
//setup all the routes
// Apply auth to entire router
const router = Router();
router.use(requireAuth);
router.use(start);
router.use(stop);
router.use(restart);
app.use(`${baseUrl}/api/system/gpSql`, router);
app.use(`${baseUrl}/api/system/gpSql`, requireAuth, router);
};