summaryrefslogtreecommitdiff
path: root/web/src/main.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-19 00:58:08 +0500
committerilotterytea <iltsu@alright.party>2024-05-19 00:58:08 +0500
commitfeede6c8024147d0b2f12c18d7dca622a797645b (patch)
tree4e353f8fc1bb396a2a2cf640e9f33775538abb02 /web/src/main.cpp
parent8539ae8ed393371270ac269d0f0069f1b25f6f6f (diff)
feat: config
Diffstat (limited to 'web/src/main.cpp')
-rw-r--r--web/src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/src/main.cpp b/web/src/main.cpp
index 06936c5..b63151c 100644
--- a/web/src/main.cpp
+++ b/web/src/main.cpp
@@ -1,8 +1,11 @@
+#include "config.hpp"
#include "crow/app.h"
#include "crow/mustache.h"
#include "handlers.hpp"
int main(int argc, char *argv[]) {
+ auto cfg = botweb::parse_configuration_from_file(".env");
+
crow::SimpleApp app;
CROW_ROUTE(app, "/")