aboutsummaryrefslogtreecommitdiff
path: root/src/guff/handlers/not-found-handler.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/handlers/not-found-handler.cr')
-rw-r--r--src/guff/handlers/not-found-handler.cr12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/guff/handlers/not-found-handler.cr b/src/guff/handlers/not-found-handler.cr
index b15b1dc..4cd564f 100644
--- a/src/guff/handlers/not-found-handler.cr
+++ b/src/guff/handlers/not-found-handler.cr
@@ -1,10 +1,8 @@
-require "./handler"
+require "../handler"
-module Guff
- class NotFoundHandler < Handler
- def call(context : HTTP::Server::Context)
- context.response.status_code = 404
- context.response.puts "not found"
- end
+class Guff::Handlers::NotFoundHandler < Guff::Handler
+ def call(context : HTTP::Server::Context)
+ context.response.status_code = 404
+ context.response.puts "not found"
end
end