mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 19:02:22 +01:00
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
const Express = require("express");
|
|
const express = Express.Router();
|
|
|
|
express.get("/lightswitch/api/service/Fortnite/status", async (req, res) => {
|
|
res.json({
|
|
"serviceInstanceId": "fortnite",
|
|
"status": "UP",
|
|
"message": "Fortnite is online",
|
|
"maintenanceUri": null,
|
|
"overrideCatalogIds": [
|
|
"a7f138b2e51945ffbfdacc1af0541053"
|
|
],
|
|
"allowedActions": [],
|
|
"banned": false,
|
|
"launcherInfoDTO": {
|
|
"appName": "Fortnite",
|
|
"catalogItemId": "4fe75bbc5a674f4f9b356b5c90567da5",
|
|
"namespace": "fn"
|
|
}
|
|
});
|
|
})
|
|
|
|
express.get("/lightswitch/api/service/bulk/status", async (req, res) => {
|
|
res.json(
|
|
[{
|
|
"serviceInstanceId": "fortnite",
|
|
"status": "UP",
|
|
"message": "fortnite is up.",
|
|
"maintenanceUri": null,
|
|
"overrideCatalogIds": [
|
|
"a7f138b2e51945ffbfdacc1af0541053"
|
|
],
|
|
"allowedActions": [
|
|
"PLAY",
|
|
"DOWNLOAD"
|
|
],
|
|
"banned": false,
|
|
"launcherInfoDTO": {
|
|
"appName": "Fortnite",
|
|
"catalogItemId": "4fe75bbc5a674f4f9b356b5c90567da5",
|
|
"namespace": "fn"
|
|
}
|
|
}]
|
|
)
|
|
})
|
|
|
|
module.exports = express; |