generated from azures04/Base-REST-API
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:
9
routes/api/v1/file/index.js
Normal file
9
routes/api/v1/file/index.js
Normal 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
|
||||
Reference in New Issue
Block a user