mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 14:23:51 +00:00
25 lines
481 B
C++
25 lines
481 B
C++
|
//
|
||
|
// Created by koncord on 04.09.17.
|
||
|
//
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "SimpleWeb/https_server.hpp"
|
||
|
#include "MasterServer.hpp"
|
||
|
|
||
|
typedef SimpleWeb::Server<SimpleWeb::HTTPS> HttpsServer;
|
||
|
|
||
|
class AdminRest
|
||
|
{
|
||
|
public:
|
||
|
AdminRest(const std::string &cert, const std::string &key, const std::string &verifyFile, unsigned short port, std::shared_ptr<MasterServer> master);
|
||
|
void start();
|
||
|
void stop();
|
||
|
|
||
|
private:
|
||
|
HttpsServer httpServer;
|
||
|
std::shared_ptr<MasterServer> master;
|
||
|
};
|
||
|
|
||
|
|