aboutsummaryrefslogtreecommitdiff
path: root/zenserver/frontend/frontend.h
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-03-01 13:11:33 +0100
committerMartin Ridgers <[email protected]>2022-03-15 13:45:20 +0100
commit0f5f1f9cdcdb03901f6589cf98a78d387b2f7b54 (patch)
treeb3f76a3b283d24d32d2d4914c7dfeff08dfa8552 /zenserver/frontend/frontend.h
parentclang format (diff)
downloadzen-0f5f1f9cdcdb03901f6589cf98a78d387b2f7b54.tar.xz
zen-0f5f1f9cdcdb03901f6589cf98a78d387b2f7b54.zip
Moved experimental/frontend.* to frontend/frontend.*
Diffstat (limited to 'zenserver/frontend/frontend.h')
-rw-r--r--zenserver/frontend/frontend.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/zenserver/frontend/frontend.h b/zenserver/frontend/frontend.h
new file mode 100644
index 000000000..2ae20e940
--- /dev/null
+++ b/zenserver/frontend/frontend.h
@@ -0,0 +1,24 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#pragma once
+
+#include <zenhttp/httpserver.h>
+
+#include <filesystem>
+
+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;
+
+private:
+ std::filesystem::path m_Directory;
+};
+
+} // namespace zen