aboutsummaryrefslogtreecommitdiff
path: root/src/guff
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff')
-rw-r--r--src/guff/handlers.cr6
-rw-r--r--src/guff/handlers/api-handler.cr (renamed from src/guff/api-handler.cr)0
-rw-r--r--src/guff/handlers/blog-handler.cr (renamed from src/guff/blog-handler.cr)0
-rw-r--r--src/guff/handlers/not-found-handler.cr (renamed from src/guff/not-found-handler.cr)0
-rw-r--r--src/guff/handlers/test-handler.cr (renamed from src/guff/test-handler.cr)0
5 files changed, 1 insertions, 5 deletions
diff --git a/src/guff/handlers.cr b/src/guff/handlers.cr
index 6eeb389..ba48bbd 100644
--- a/src/guff/handlers.cr
+++ b/src/guff/handlers.cr
@@ -1,7 +1,7 @@
require "http/server"
require "./config"
require "./model"
-require "./blog-handler"
+require "./handlers/*"
module Guff
module Handlers
@@ -34,10 +34,6 @@ module Guff
},
}, {
init: ->(models : Models) {
- SlugHandler.new(models) as HTTP::Handler
- },
- }, {
- init: ->(models : Models) {
HTTP::StaticFileHandler.new(models.config["public"]) as HTTP::Handler
},
}, {
diff --git a/src/guff/api-handler.cr b/src/guff/handlers/api-handler.cr
index 274e137..274e137 100644
--- a/src/guff/api-handler.cr
+++ b/src/guff/handlers/api-handler.cr
diff --git a/src/guff/blog-handler.cr b/src/guff/handlers/blog-handler.cr
index 988eab5..988eab5 100644
--- a/src/guff/blog-handler.cr
+++ b/src/guff/handlers/blog-handler.cr
diff --git a/src/guff/not-found-handler.cr b/src/guff/handlers/not-found-handler.cr
index b15b1dc..b15b1dc 100644
--- a/src/guff/not-found-handler.cr
+++ b/src/guff/handlers/not-found-handler.cr
diff --git a/src/guff/test-handler.cr b/src/guff/handlers/test-handler.cr
index 3856400..3856400 100644
--- a/src/guff/test-handler.cr
+++ b/src/guff/handlers/test-handler.cr