aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/frontend.h
blob: 6eac20620c982f11a65fde3b6ebc515fabbbc3fc (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