azures04 2e23d417af 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.
2026-01-25 21:47:49 +01:00

10 lines
305 B
JavaScript

const express = require("express")
const router = express.Router()
const gameFilesService = require("../../../services/gameDataService")
router.get("", async (req, res) => {
const gameIndex = await gameFilesService.getGameFiles()
return res.status(200).json(gameIndex)
})
module.exports = router