diff options
| author | Martin Ridgers <[email protected]> | 2022-03-02 10:30:00 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2022-03-15 13:45:20 +0100 |
| commit | 9dd7b73739486d4de3206c79f497231b286f53e6 (patch) | |
| tree | 3a14f83f2f2b8728e1a4f2263616b4654e75d326 /zenserver/frontend/frontend.h | |
| parent | Implemented zip file locating for fat Mach-o binaries (diff) | |
| download | zen-9dd7b73739486d4de3206c79f497231b286f53e6.tar.xz zen-9dd7b73739486d4de3206c79f497231b286f53e6.zip | |
Serve the /dashboard endpoint from an embedded .zip file
Diffstat (limited to 'zenserver/frontend/frontend.h')
| -rw-r--r-- | zenserver/frontend/frontend.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/zenserver/frontend/frontend.h b/zenserver/frontend/frontend.h index 2ae20e940..bf5298169 100644 --- a/zenserver/frontend/frontend.h +++ b/zenserver/frontend/frontend.h @@ -3,6 +3,7 @@ #pragma once #include <zenhttp/httpserver.h> +#include "zipfs.h" #include <filesystem> @@ -11,14 +12,14 @@ namespace zen { class HttpFrontendService final : public zen::HttpService { public: - HttpFrontendService(std::filesystem::path Directory); - virtual ~HttpFrontendService(); - - virtual const char* BaseUri() const override; - virtual void HandleRequest(zen::HttpServerRequest& Request) override; + HttpFrontendService(std::filesystem::path Directory); + virtual ~HttpFrontendService(); + virtual const char* BaseUri() const override; + virtual void HandleRequest(zen::HttpServerRequest& Request) override; private: - std::filesystem::path m_Directory; + ZipFs m_ZipFs; + std::filesystem::path m_Directory; }; } // namespace zen |