Add public Android APK download

This commit is contained in:
2026-04-06 23:11:54 -05:00
parent c127d1358b
commit 26015fefd7
8 changed files with 59 additions and 0 deletions
@@ -0,0 +1,24 @@
const fs = require('fs/promises');
const path = require('path');
const env = require('../../config/env');
const getAndroidApk = async () => {
const filePath = env.androidApkPath;
try {
await fs.access(filePath);
} catch {
const error = new Error('Android APK not found.');
error.statusCode = 404;
throw error;
}
return {
filePath,
fileName: path.basename(filePath),
};
};
module.exports = {
getAndroidApk,
};