Commit a0d94abe7d9ba4e7a41e884d23ad0bd231d1459a

Thomas de Grivel 2024-10-28T17:15:55

load db

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 032863e..40391ad 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -17,6 +17,9 @@ defmodule HTTPd do
   def load_app = fn () {
     HTTP.mime_type_load("config/mime.types")
     load_directory("app/models/")
+    if (File.exists?("config/db.kc3")) do
+      load("config/db.kc3")
+    end
     load_directory("app/controllers/")
     load_directory("app/views/")
     if (File.exists?("config/routes.kc3")) do