mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
<feat: New project structure>
<feat: New release>
This commit is contained in:
47
dependencies/lawin/structure/lightswitch.js
vendored
Normal file
47
dependencies/lawin/structure/lightswitch.js
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user