refactor: streamline portal responses and request handling

Return download responses from the filename helper and simplify response
construction while preserving JSON lengths, authentication and body limits.

Move RequestInterface to shared types, clarify route comments and group
validation and OTA branches consistently.
This commit is contained in:
Yurii committed 2026-11-29 05:43:51 +03:00
1 parent 8fba88636e
commit 09b5f6c9e0
2 files changed
+165 -87

No files matched your search

+7
View File
@@ -78,6 +78,13 @@ enum HaEntity : uint8_t {
HA_ENTITY_COUNT
};
enum class RequestInterface : uint8_t {
UNKNOWN,
AP,
STA,
ETH
};
enum class NetworkEvent : uint8_t {
CONNECTED,
DISCONNECTED,