aboutsummaryrefslogtreecommitdiff
path: root/src/guff/handlers
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-08 17:28:35 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-08 17:28:35 -0500
commitcc7a0fa54b991d54d9324d8552e733785460f948 (patch)
tree0f908874a2f4a73dd55d7d7c0ecd6b76769c7708 /src/guff/handlers
parent6faf41630a5bb8eb23f3a2800ab01a8121fa1b09 (diff)
downloadold-guff-cc7a0fa54b991d54d9324d8552e733785460f948.tar.bz2
old-guff-cc7a0fa54b991d54d9324d8552e733785460f948.zip
s/do_/do_api_/
Diffstat (limited to 'src/guff/handlers')
-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