From 2c60a34cbe95d34950977e59d9316a1885b4fd6f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 8 Mar 2016 05:06:34 -0500 Subject: reorganize api --- src/guff/api-handler.cr | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/guff/api-handler.cr') diff --git a/src/guff/api-handler.cr b/src/guff/api-handler.cr index 370c8f6..4d4a996 100644 --- a/src/guff/api-handler.cr +++ b/src/guff/api-handler.cr @@ -1,6 +1,6 @@ require "json" require "./handler" -require "./api-methods" +require "./api/*" private macro define_method_calls(hash) case namespace @@ -26,8 +26,15 @@ end module Guff class APIHandler < Handler - include APIMethods - include APIContentType + include API::Methods + include API::ContentType + include API::Util + include API::PostAPI + include API::DirAPI + include API::FileAPI + include API::TagAPI + include API::SiteAPI + include API::TestAPI PATH_RE = %r{ ^/api -- cgit v1.2.3