Changed from C# based system to own C++ implementation using crow.
This commit is contained in:
23
include/server.hpp
Normal file
23
include/server.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef DOUWCO_SERVER_HPP
|
||||
#define DOUWCO_SERVER_HPP
|
||||
|
||||
#include <crow.h>
|
||||
|
||||
namespace Douwco {
|
||||
|
||||
class Server {
|
||||
public:
|
||||
Server() = default;
|
||||
~Server() = default;
|
||||
|
||||
void setup();
|
||||
void start();
|
||||
|
||||
private:
|
||||
static constexpr int port = 8080;
|
||||
crow::SimpleApp crowApp;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // DOUWCO_SERVER_HPP
|
||||
Reference in New Issue
Block a user