aboutsummaryrefslogtreecommitdiff
path: root/zenserver/monitoring/httpstats.h
blob: 9da48233b8b134368eefc39514ee07807677deb8 (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
26
// Copyright Epic Games, Inc. All Rights Reserved.

#pragma once

#include <zenhttp/httpserver.h>
#include <zencore/logging.h>

namespace zen {

class HttpStatsService : public HttpService
{
public:
	HttpStatsService();
	~HttpStatsService();

	virtual const char* BaseUri() const override;
	virtual void		HandleRequest(HttpServerRequest& Request) override;

private:
	spdlog::logger&	  m_Log;
	HttpRequestRouter m_Router;

	inline spdlog::logger& Log() { return m_Log; }
};

}  // namespace zen