返回提交历史
Modified
src/app.ts
+2
-2
Modified
src/controllers/api/loginController.ts
+6
-1
XFEstudio/SpaceNinjaServer
chore: update cdn routes and note the history behind them (#3092)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3092 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
d00f78fd
代码差异
2 个文件
+8
-3
@@ -40,8 +40,8 @@ app.use(requestLogger);
40
40
app.use("/api", apiRouter);
41
41
app.use("/", cacheRouter);
42
42
app.use("/custom", customRouter);
43
app.use("/cdn", dynamicController);
44
app.use("/dynamic", dynamicController);
43
app.use("/cdn", dynamicController); // Post-U40
44
app.use("/dynamic", dynamicController); // Pre-U40
45
45
app.use("/:id/dynamic", dynamicController);
46
46
app.use("/pay", payRouter);
47
47
app.use("/PublicExport/", publicExportRouter);
@@ -169,9 +169,14 @@ const createLoginResponse = (request: Request, account: IDatabaseAccountJson, bu
169
169
).toString();
170
170
}
171
171
if (version_compare(buildLabel, "2023.04.25.23.40") >= 0) {
172
if (version_compare(buildLabel, "2025.08.26.09.49") >= 0) {
172
if (version_compare(buildLabel, "2025.10.14.16.10") >= 0) {
173
// U40 is when they changed this from content.warframe.com/dynamic/ to api.warframe.com/cdn/
174
resp.platformCDNs = [`${myUrlBase}/cdn/`];
175
} else if (version_compare(buildLabel, "2025.08.26.09.49") >= 0) {
176
// U39.1 is when they made dynamic/ explicit
173
177
resp.platformCDNs = [`${myUrlBase}/dynamic/`];
174
178
} else {
179
// Pre-39.1 implied dynamic/ for all content requests
175
180
resp.platformCDNs = [`${myUrlBase}/`];
176
181
}
177
182
}