summaryrefslogtreecommitdiff
path: root/web/src/handlers.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-19 00:58:38 +0500
committerilotterytea <iltsu@alright.party>2024-05-19 00:58:38 +0500
commita808ec07cbbb4fc6118d97b8e7985debe1274a5f (patch)
tree4d9ce401fac0265018274db20531f73fe612fa8e /web/src/handlers.hpp
parentfeede6c8024147d0b2f12c18d7dca622a797645b (diff)
feat: use cfg to replace placeholders
Diffstat (limited to 'web/src/handlers.hpp')
-rw-r--r--web/src/handlers.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/src/handlers.hpp b/web/src/handlers.hpp
index d150e6d..5321a46 100644
--- a/web/src/handlers.hpp
+++ b/web/src/handlers.hpp
@@ -1,7 +1,11 @@
#pragma once
+#include <optional>
+
+#include "config.hpp"
#include "crow/http_response.h"
namespace botweb {
- crow::response get_wiki_page(const std::string &path);
+ crow::response get_wiki_page(const std::string &path,
+ const std::optional<Configuration> &cfg);
}