diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-06 02:10:29 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-06 02:10:29 -0500 |
commit | 2421d5f15569515d9fda3c6f36edeaf7e5222b54 (patch) | |
tree | a9c5d8cdf8eb7154435c450a7a63ed29d98f5836 /src/guff/api-handler.cr | |
parent | 845049cc77426ddf14d351b9d548b1fbb53925d1 (diff) | |
download | old-guff-2421d5f15569515d9fda3c6f36edeaf7e5222b54.tar.bz2 old-guff-2421d5f15569515d9fda3c6f36edeaf7e5222b54.zip |
add api-docs
Diffstat (limited to 'src/guff/api-handler.cr')
-rw-r--r-- | src/guff/api-handler.cr | 8 |
1 files changed, 1 insertions, 7 deletions
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", - "<p>API Documentation</p>" - ) - - context.response.content_type = page.content_type - context.response.puts page + APIDocsHTMLView.run(context) end end end |