Commit 42e77a304fa7cc7967e93d0272a6c59dae80b42d

Thomas de Grivel 2024-10-24T12:58:52

httpd: load models before controllers

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