Add database and config file support.

This commit is contained in:
2023-09-26 00:11:38 -04:00
parent f1e9586836
commit f49fb8101d
8 changed files with 402 additions and 8 deletions

View File

@@ -53,12 +53,12 @@ router.get('/mod/:modname/:modversion', (req, res) => {
})
router.get('/modpack', (req, res) => {
// No Slug
// Modpack Index
res.json({
"modpacks": {
"test": "Example Modpack"
"slug": "Example Modpack Pretty Name"
},
"mirror_url": "https://example.com/"
"mirror_url": `http://${process.env.HOST}/mods`
})
})