aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-08 16:59:30 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-08 16:59:30 -0500
commitb5d66c8d5ce941a6ee290128807f1f9e50aee4e9 (patch)
tree8e65a5f082f41f66a9b2b7f7821a884a6a9cdc6a
parent575e4c49131e7699fc23fca78ec14b400680839a (diff)
downloadold-guff-b5d66c8d5ce941a6ee290128807f1f9e50aee4e9.tar.bz2
old-guff-b5d66c8d5ce941a6ee290128807f1f9e50aee4e9.zip
mv src/guff/*-handler.cr src/guff/handler/
-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