From 2421d5f15569515d9fda3c6f36edeaf7e5222b54 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 6 Mar 2016 02:10:29 -0500 Subject: add api-docs --- src/guff/api-handler.cr | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/guff/api-handler.cr') diff --git a/src/guff/api-handler.cr b/src/guff/api-handler.cr index 2b4cfb0..ad78706 100644 --- a/src/guff/api-handler.cr +++ b/src/guff/api-handler.cr @@ -110,13 +110,7 @@ module Guff end private def do_docs(context : HTTP::Server::Context) - page = HTMLPageView.new( - "API Documentation", - "

API Documentation

" - ) - - context.response.content_type = page.content_type - context.response.puts page + APIDocsHTMLView.run(context) end end end -- cgit v1.2.3