11 lines
426 B
TypeScript
11 lines
426 B
TypeScript
import type { Express } from "express";
|
|
import restart from "./prodSqlRestart.route.js";
|
|
import start from "./prodSqlStart.route.js";
|
|
import stop from "./prodSqlStop.route.js";
|
|
export const setupProdSqlRoutes = (baseUrl: string, app: Express) => {
|
|
//setup all the routes
|
|
app.use(`${baseUrl}/api/system/prodSql`, start);
|
|
app.use(`${baseUrl}/api/system/prodSql`, stop);
|
|
app.use(`${baseUrl}/api/system/prodSql`, restart);
|
|
};
|