[FEATURE} Adjust error handling and bump versions
This commit is contained in:
parent
d47a8c3cc4
commit
360dd32860
19 changed files with 1052 additions and 455 deletions
|
@ -13,7 +13,7 @@ export default async function rconInterface(socket) {
|
|||
const rconRes = await k8sCore.readNamespacedSecret(rconSecret, namespace);
|
||||
const rconPassword = Buffer.from(
|
||||
rconRes.body.data["rcon-password"],
|
||||
"base64"
|
||||
"base64",
|
||||
).toString("utf8");
|
||||
const rconHost = `mcl-${socket.mcs.serverName}-rcon`;
|
||||
const rcon = new RconClient({
|
||||
|
|
|
@ -6,6 +6,11 @@ import vitals from "../routes/vitals-route.js";
|
|||
import systemRoute from "../routes/system-route.js";
|
||||
import serverRoute from "../routes/server-route.js";
|
||||
import reactRoute from "../routes/react-route.js";
|
||||
import {
|
||||
logErrors,
|
||||
clientErrorHandler,
|
||||
errorHandler,
|
||||
} from "../routes/error-route.js";
|
||||
|
||||
export default function buildRoutes(pg, skio) {
|
||||
const router = express.Router();
|
||||
|
@ -18,7 +23,10 @@ export default function buildRoutes(pg, skio) {
|
|||
// Routes
|
||||
router.use("/api/system", systemRoute);
|
||||
router.use("/api/server", serverRoute);
|
||||
router.use(["/mcl","/mcl/*"], reactRoute); // Static Build Route
|
||||
router.use(["/mcl", "/mcl/*"], reactRoute); // Static Build Route
|
||||
/*router.use(logErrors);
|
||||
router.use(clientErrorHandler);
|
||||
router.use(errorHandler);*/
|
||||
|
||||
return router;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue