aboutsummaryrefslogtreecommitdiff
path: root/src/guff/handlers
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-08 17:21:09 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-08 17:21:09 -0500
commitbc86dbf55dd2c134fc2e5d0e6bf8cefbe6b1ceba (patch)
treeb78eff68e72f080767dffb0a61a40f6bd08e9b8b /src/guff/handlers
parent0f3de66b4b824394305caff297d5a5f829d79b2e (diff)
downloadold-guff-bc86dbf55dd2c134fc2e5d0e6bf8cefbe6b1ceba.tar.bz2
old-guff-bc86dbf55dd2c134fc2e5d0e6bf8cefbe6b1ceba.zip
refactor html views
Diffstat (limited to 'src/guff/handlers')
-rw-r--r--src/guff/handlers/api-handler.cr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guff/handlers/api-handler.cr b/src/guff/handlers/api-handler.cr
index f40a39d..77606ae 100644
--- a/src/guff/handlers/api-handler.cr
+++ b/src/guff/handlers/api-handler.cr
@@ -1,6 +1,7 @@
require "json"
require "../handler"
require "../api/*"
+require "../views/html/api-docs"
private macro define_method_calls(hash)
case namespace
@@ -142,6 +143,6 @@ class Guff::Handlers::APIHandler < Guff::Handler
end
private def do_docs(context : HTTP::Server::Context)
- APIDocsHTMLView.run(context)
+ Guff::APIDocsHTMLView.run(context)
end
end