返回提交历史
Modified
src/app.ts
+5
-0
XFEstudio/XFESpaceNinjaServer
chore: add worldState endpoint for U39.1 (#2701)
U39.1 wants world state from `/worldState.php` not from `/dynamic/worldState.php` as before. Before bootstrapper update you need to replace `/static/data/buildConfig.json` to match latest version. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2701 Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
8b8d66ab
代码差异
1 个文件
+5
-0
@@ -13,6 +13,8 @@ import { payRouter } from "./routes/pay.ts";
13
13
import { statsRouter } from "./routes/stats.ts";
14
14
import { webuiRouter } from "./routes/webui.ts";
15
15
16
import { worldStateController } from "./controllers/dynamic/worldStateController.ts";
17
16
18
const app = express();
17
19
18
20
app.use((req, _res, next) => {
@@ -45,6 +47,9 @@ app.use("/pay", payRouter);
45
47
app.use("/stats", statsRouter);
46
48
app.use("/", webuiRouter);
47
49
50
// U39.1+ gets worldState from that location
51
app.get("/worldState.php", worldStateController);
52
48
53
app.use(unknownEndpointHandler);
49
54
app.use(errorHandler);
50
55