feat(mobile): new route for the ehs launcher

This commit is contained in:
2026-04-27 21:22:59 -05:00
parent 8446dbc955
commit 649ae1ee9f

View File

@@ -53,4 +53,17 @@ router.get("/apk/latest", (_, res) => {
return res.sendFile(apkPath); return res.sendFile(apkPath);
}); });
router.get("/apk/ehs", (_, res) => {
const apkPath = path.join(downloadDir, "EHS.apk");
if (!fs.existsSync(apkPath)) {
return res.status(404).json({ success: false, message: "APK not found" });
}
res.setHeader("Content-Type", "application/vnd.android.package-archive");
res.setHeader("Content-Disposition", `attachment; filename="EHS.apk}"`);
return res.sendFile(apkPath);
});
export default router; export default router;