fix: view profile on U39.1+ (#2709)
Reviewed-on: #2709 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
0d791ad145
commit
0bf142ed50
@ -13,8 +13,6 @@ import { payRouter } from "./routes/pay.ts";
|
||||
import { statsRouter } from "./routes/stats.ts";
|
||||
import { webuiRouter } from "./routes/webui.ts";
|
||||
|
||||
import { worldStateController } from "./controllers/dynamic/worldStateController.ts";
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use((req, _res, next) => {
|
||||
@ -47,9 +45,6 @@ app.use("/pay", payRouter);
|
||||
app.use("/stats", statsRouter);
|
||||
app.use("/", webuiRouter);
|
||||
|
||||
// U39.1+ gets worldState from that location
|
||||
app.get("/worldState.php", worldStateController);
|
||||
|
||||
app.use(unknownEndpointHandler);
|
||||
app.use(errorHandler);
|
||||
|
||||
|
||||
@ -140,7 +140,11 @@ const createLoginResponse = (
|
||||
resp.MatchmakingBuildId = buildConfig.matchmakingBuildId;
|
||||
}
|
||||
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
|
||||
resp.platformCDNs = [`${myUrlBase}/`];
|
||||
if (version_compare(buildLabel, "2025.08.26.09.49") >= 0) {
|
||||
resp.platformCDNs = [`${myUrlBase}/dynamic/`];
|
||||
} else {
|
||||
resp.platformCDNs = [`${myUrlBase}/`];
|
||||
}
|
||||
}
|
||||
return resp;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user