recator placement of code
This commit is contained in:
10
backend/prodSql/prodSql.routes.ts
Normal file
10
backend/prodSql/prodSql.routes.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user