aboutsummaryrefslogtreecommitdiff
path: root/src/guff/api-handler.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-08 05:06:34 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-08 05:06:34 -0500
commit2c60a34cbe95d34950977e59d9316a1885b4fd6f (patch)
treecd510b6bf03e9eb9ebdccd5ec4a4f92acfdc3669 /src/guff/api-handler.cr
parent490464d7d07e94b6ee69bbbc4b290a2b0e3a0975 (diff)
downloadold-guff-2c60a34cbe95d34950977e59d9316a1885b4fd6f.tar.bz2
old-guff-2c60a34cbe95d34950977e59d9316a1885b4fd6f.zip
reorganize api
Diffstat (limited to 'src/guff/api-handler.cr')
-rw-r--r--src/guff/api-handler.cr13
1 files changed, 10 insertions, 3 deletions
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