aboutsummaryrefslogtreecommitdiff
path: root/zenserver/frontend/frontend.h
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-03-02 10:30:00 +0100
committerMartin Ridgers <[email protected]>2022-03-15 13:45:20 +0100
commit9dd7b73739486d4de3206c79f497231b286f53e6 (patch)
tree3a14f83f2f2b8728e1a4f2263616b4654e75d326 /zenserver/frontend/frontend.h
parentImplemented zip file locating for fat Mach-o binaries (diff)
downloadzen-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.h13
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