From cc7a0fa54b991d54d9324d8552e733785460f948 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 8 Mar 2016 17:28:35 -0500 Subject: s/do_/do_api_/ --- src/guff/handlers/api.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit v1.2.3