feat: add NWNX C++ build pipeline
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user