aboutsummaryrefslogtreecommitdiff
path: root/zenserver/experimental/frontend.h
blob: 2ae20e9401c84175e5062f09fb66611d8371735c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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