mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-09 22:21:23 +00:00
38 lines
1.5 KiB
C++
38 lines
1.5 KiB
C++
#pragma once
|
|
|
|
void registerHandlers(HTTPServer *insecureServer, HTTPSServer *secureServer);
|
|
|
|
// Declare some handler functions for the various URLs on the server
|
|
void handleAPIv1FromRadio(HTTPRequest *req, HTTPResponse *res);
|
|
void handleAPIv1ToRadio(HTTPRequest *req, HTTPResponse *res);
|
|
void handleHotspot(HTTPRequest *req, HTTPResponse *res);
|
|
void handleStatic(HTTPRequest *req, HTTPResponse *res);
|
|
void handleRestart(HTTPRequest *req, HTTPResponse *res);
|
|
void handleFormUpload(HTTPRequest *req, HTTPResponse *res);
|
|
void handleScanNetworks(HTTPRequest *req, HTTPResponse *res);
|
|
void handleFsBrowseStatic(HTTPRequest *req, HTTPResponse *res);
|
|
void handleFsDeleteStatic(HTTPRequest *req, HTTPResponse *res);
|
|
void handleBlinkLED(HTTPRequest *req, HTTPResponse *res);
|
|
void handleReport(HTTPRequest *req, HTTPResponse *res);
|
|
void handleUpdateFs(HTTPRequest *req, HTTPResponse *res);
|
|
void handleDeleteFsContent(HTTPRequest *req, HTTPResponse *res);
|
|
void handleFs(HTTPRequest *req, HTTPResponse *res);
|
|
void handleAdmin(HTTPRequest *req, HTTPResponse *res);
|
|
void handleAdminSettings(HTTPRequest *req, HTTPResponse *res);
|
|
void handleAdminSettingsApply(HTTPRequest *req, HTTPResponse *res);
|
|
|
|
// Interface to the PhoneAPI to access the protobufs with messages
|
|
class HttpAPI : public PhoneAPI
|
|
{
|
|
|
|
public:
|
|
// Nothing here yet
|
|
|
|
private:
|
|
// Nothing here yet
|
|
|
|
protected:
|
|
/// Check the current underlying physical link to see if the client is currently connected
|
|
virtual bool checkIsConnected() override { return true; } // FIXME, be smarter about this
|
|
};
|