diff options
Diffstat (limited to 'response.cpp')
-rw-r--r-- | response.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/response.cpp b/response.cpp index 9eda5ff..1752466 100644 --- a/response.cpp +++ b/response.cpp @@ -3,6 +3,7 @@ #include "auth.h" #include "base64.h" #include "file.h" +#include "os.h" #include <boost/algorithm/string/predicate.hpp> @@ -85,6 +86,8 @@ std::unordered_map<std::string, std::function<std::string(Server&)>> GetServerPa {"port", [](Server& server) { return server.GetSocket().port; }}, {"statistics", [](Server& server) { return server.GetStatistics().getValues(); }}, {"version", [](Server& server) { return Server::VersionString; }}, + {"uptime_host", [](Server& server) { return OS::uptime_host(); }}, + {"uptime_webserver", [](Server& server) { return OS::uptime_process(); }}, }; std::string GetServerParam(const std::string& key, Server& server) |