diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-08 17:03:44 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-08 17:03:44 -0500 |
commit | 8989c5b2601028f575211d7443c7c082b122079e (patch) | |
tree | 940844924c675039431f15fa9d1ef5b96481c950 /src/guff/handlers/not-found-handler.cr | |
parent | b5d66c8d5ce941a6ee290128807f1f9e50aee4e9 (diff) | |
download | old-guff-8989c5b2601028f575211d7443c7c082b122079e.tar.bz2 old-guff-8989c5b2601028f575211d7443c7c082b122079e.zip |
refactor handlers
Diffstat (limited to 'src/guff/handlers/not-found-handler.cr')
-rw-r--r-- | src/guff/handlers/not-found-handler.cr | 12 |
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 |