From ceca7411df9b891a1534f0e90540d23e0af74f25 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 5 Mar 2016 18:59:25 -0500 Subject: refactor Guff::Handler --- src/guff/handler.cr | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/guff/handler.cr (limited to 'src/guff') diff --git a/src/guff/handler.cr b/src/guff/handler.cr new file mode 100644 index 0000000..e665585 --- /dev/null +++ b/src/guff/handler.cr @@ -0,0 +1,16 @@ +require "http/server" + +module Guff + class Handler < ::HTTP::Handler + getter :model + getter :config + + def initialize(@model : Model, @config : Config) + end + + def call(context : HTTP::Server::Context) + # do nothing by default + call_next(context) + end + end +end -- cgit v1.2.3