diff options
Diffstat (limited to 'src/guff')
-rw-r--r-- | src/guff/handlers/test-blog.cr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guff/handlers/test-blog.cr b/src/guff/handlers/test-blog.cr index f22ba76..dec763c 100644 --- a/src/guff/handlers/test-blog.cr +++ b/src/guff/handlers/test-blog.cr @@ -4,11 +4,11 @@ require "../views/html/test/blog" class Guff::Handlers::TestBlogHandler < Guff::Handler def call(context : HTTP::Server::Context) case (context.request.path || "") as String - when /^\/test\/blog\/?$/ + when %r{^/test/blog/?$} draw_page(context) - when /^\/test\/blog\/set_state$/ + when %r{^/test/blog/set_state$} set_state(context) - when /^\/test\/blog\/add_post$/ + when %r{^/test/blog/add_post$} add_post(context) else call_next(context) |