generated from azures04/Base-REST-API
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.
10 lines
305 B
JavaScript
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 |