use dashes instead
This commit is contained in:
parent
dc475f0415
commit
7512e92bd0
2
app.js
2
app.js
@ -73,7 +73,7 @@ app.get('/apps/:id', (req, res) => {
|
||||
|
||||
app.get('/download', (req, res) => {
|
||||
const { name, type, version, arch } = req.query;
|
||||
if (!validator.isAlphanumeric(name.replace(/\s/g, '')) || !validator.isAlphanumeric(type) || !validator.isAlphanumeric(version.replace(/\./g, '')) || !validator.isAlphanumeric(arch)) {
|
||||
if (!validator.isAlphanumeric(name.replace(/\s/g, '')) || !validator.isAlphanumeric(type) || !validator.isAlphanumeric(version.replace(/\./g, '')) || !/^[a-zA-Z0-9-]+$/.test(arch)) {
|
||||
return res.status(400).send('Invalid input, mister!');
|
||||
}
|
||||
fs.readFile(`${type}s.json`, (err, data) => {
|
||||
|
12
apps.json
12
apps.json
@ -302,18 +302,18 @@
|
||||
"selfHosted": false,
|
||||
"downloadLinks": {
|
||||
"v8.8.0": {
|
||||
"arm64.v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-arm64-v8a.apk",
|
||||
"armeabi.v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-armeabi-v7a.apk",
|
||||
"arm64-v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-arm64-v8a.apk",
|
||||
"armeabi-v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-armeabi-v7a.apk",
|
||||
"universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.8.0/Cherrygram-8.8.0-TG-11.5.3-universal.apk"
|
||||
},
|
||||
"v8.7.0": {
|
||||
"arm64.v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-arm64-v8a.apk",
|
||||
"armeabi.v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-armeabi-v7a.apk",
|
||||
"arm64-v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-arm64-v8a.apk",
|
||||
"armeabi-v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-armeabi-v7a.apk",
|
||||
"universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.7.0/Cherrygram-8.7.0-TG-11.2.3-universal.apk"
|
||||
},
|
||||
"v8.6.0": {
|
||||
"arm64.v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-arm64-v8a.apk",
|
||||
"armeabi.v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-armeabi-v7a.apk",
|
||||
"arm64-v8a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-arm64-v8a.apk",
|
||||
"armeabi-v7a": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-armeabi-v7a.apk",
|
||||
"universal": "https://github.com/arsLan4k1390/Cherrygram/releases/download/8.6.0/Cherrygram-8.6.0-TG-11.1.3-universal.apk"
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user