Refactor API routes and add status endpoint

Moved download and gamefiles routes to api/v2 directory and updated service imports. Added a new api/v2/status endpoint to report maintenance status. Introduced api/v1/file route to return 410 error for deprecated launcher support.
This commit is contained in:
2026-01-25 21:47:49 +01:00
parent cf54edf146
commit 2e23d417af
4 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
const express = require("express")
const router = express.Router()
const { DefaultError } = require("../../../../errors/errors")
router.get(/.*/, async (req, res) => {
throw new DefaultError(410, "Support for old launcher permanently removed.")
})
module.exports = router