feat: add hak build pipeline
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
buildModule,
|
||||
hotReloadScripts,
|
||||
compileSingle,
|
||||
buildHaks,
|
||||
} from "../services/build.service.js";
|
||||
|
||||
const router = Router();
|
||||
@@ -47,4 +48,13 @@ router.post("/compile-single", async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
router.post("/haks", async (_req, res) => {
|
||||
try {
|
||||
const result = await buildHaks();
|
||||
res.json(result);
|
||||
} catch (err: any) {
|
||||
res.status(500).json({ error: err.message });
|
||||
}
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user