feat: add NWNX C++ build pipeline

This commit is contained in:
plenarius
2026-04-20 19:51:34 -04:00
parent 6d18386473
commit 0e31277eec
2 changed files with 46 additions and 0 deletions
+11
View File
@@ -4,6 +4,7 @@ import {
hotReloadScripts,
compileSingle,
buildHaks,
buildNWNX,
} from "../services/build.service.js";
const router = Router();
@@ -57,4 +58,14 @@ router.post("/haks", async (_req, res) => {
}
});
router.post("/nwnx", async (req, res) => {
const { target } = req.body;
try {
const result = await buildNWNX(target);
res.json(result);
} catch (err: any) {
res.status(500).json({ error: err.message });
}
});
export default router;