mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-30 10:13:04 +05:00
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:
1 parent
8fba88636e
commit
09b5f6c9e0
2 files changed
+165
-87
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user