aboutsummaryrefslogtreecommitdiff
path: root/zenserver/frontend/frontend.h
blob: bf5298169a46720a2a7d213e97334f9f5e93edfa (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
25
// Copyright Epic Games, Inc. All Rights Reserved.

#pragma once

#include <zenhttp/httpserver.h>
#include "zipfs.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:
	ZipFs					m_ZipFs;
	std::filesystem::path	m_Directory;
};

}  // namespace zen