stativ hash

This commit is contained in:
Mateusz Gruszczyński
2026-05-31 23:17:14 +02:00
parent 68d8ddc8d7
commit 62572ec273
6 changed files with 73 additions and 31 deletions
+6 -4
View File
@@ -7499,8 +7499,8 @@
"tags": [
"System"
],
"summary": "Get static asset version hash",
"description": "Returns the current hash for app static assets. Clients can compare it with window.PYTORRENT.staticHash and reload when it changes.",
"summary": "Get current frontend JS/CSS hash",
"description": "Returns the startup-computed hash for app JavaScript and CSS assets. The value is kept in memory and returned without scanning static files per request.",
"responses": {
"200": {
"description": "Static asset hash",
@@ -7513,10 +7513,12 @@
"type": "boolean"
},
"static_hash": {
"type": "string"
"type": "string",
"description": "Short SHA-256-based hash of frontend JavaScript and CSS files computed once at app startup."
},
"version": {
"type": "string"
"type": "string",
"description": "Alias of static_hash for simple client version checks."
}
}
}