aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/guff/handlers/api.cr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/guff/handlers/api.cr b/src/guff/handlers/api.cr
index 77606ae..c6f78d7 100644
--- a/src/guff/handlers/api.cr
+++ b/src/guff/handlers/api.cr
@@ -65,17 +65,17 @@ class Guff::Handlers::APIHandler < Guff::Handler
if md = (context.request.path || "").match(PATH_RE)
if md["namespace"]?
# method call
- do_call(context, md["namespace"], md["method"])
+ do_api_call(context, md["namespace"], md["method"])
else
# api index
- do_docs(context)
+ do_api_docs(context)
end
else
call_next(context)
end
end
- private def do_call(
+ private def do_api_call(
context : HTTP::Server::Context,
namespace : String,
method : String
@@ -142,7 +142,7 @@ class Guff::Handlers::APIHandler < Guff::Handler
context.response.puts json
end
- private def do_docs(context : HTTP::Server::Context)
+ private def do_api_docs(context : HTTP::Server::Context)
Guff::APIDocsHTMLView.run(context)
end
end