We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 293dd28 commit e5e43c3Copy full SHA for e5e43c3
source/main.cpp
@@ -16,9 +16,8 @@ GMOD_MODULE_OPEN()
16
IServer* server = InterfacePointers::Server();
17
18
svr.Get("/", [=](const httplib::Request&, httplib::Response& res) {
19
- res.set_content("Hello World! \n\
20
- Servername: " + std::string(server->GetName()) + "\
21
- Mapname: " + std::string(server->GetMapName()), "text/plain");
+ res.set_content("Hello World", "text/plain");
+ LuaPrint("Will this crash the server");
22
});
23
24
svr.listen("0.0.0.0", 32039); // The port for my testserver.
@@ -28,6 +27,7 @@ GMOD_MODULE_OPEN()
28
27
29
GMOD_MODULE_CLOSE()
30
{
+ LuaPrint("HTTPServer shutdown");
31
svr.stop();
32
33
return 0;
0 commit comments