diff options
Diffstat (limited to 'src/protocols/httpserver.h')
| -rw-r--r-- | src/protocols/httpserver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/httpserver.h b/src/protocols/httpserver.h index 64f7987..600ead4 100644 --- a/src/protocols/httpserver.h +++ b/src/protocols/httpserver.h @@ -24,14 +24,14 @@ public: static constexpr uint16_t DefaultPort{8080}; public: - explicit HttpServer(ICamera *camera, - // QObject *parent = nullptr, + explicit HttpServer(std::shared_ptr<ICamera> camera, const QHostAddress &address = DefaultAddress, const uint16_t port = DefaultPort); ~HttpServer() override = default; // TODO: methods starting with GET_/POST_ will be routed automatically public: + QHttpServerResponse GET_image(); QHttpServerResponse GET_pixels(); QHttpServerResponse POST_params(const QHttpServerRequest &request); |
