aboutsummaryrefslogtreecommitdiff
path: root/src/guff/not-found-handler.cr
blob: b15b1dce6ea1d352b3df964bd61a4173be6933ef (plain)
1
2
3
4
5
6
7
8
9
10
require "./handler"

module Guff
  class NotFoundHandler < Handler
    def call(context : HTTP::Server::Context)
      context.response.status_code = 404
      context.response.puts "not found"
    end
  end
end