diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-14 02:20:50 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-14 02:20:50 -0400 |
commit | cf90fa002afec60e2c057348de24ca1d8bcbaaa4 (patch) | |
tree | 574b1df80a060a56946f45309956f3d63bbcfabe /src/guff/handlers | |
parent | e88219d9a4bbc85563a2ead6708641de389af4fa (diff) | |
download | old-guff-cf90fa002afec60e2c057348de24ca1d8bcbaaa4.tar.bz2 old-guff-cf90fa002afec60e2c057348de24ca1d8bcbaaa4.zip |
add test/{get_users,set_user}, js/util.js, lots more
Diffstat (limited to 'src/guff/handlers')
-rw-r--r-- | src/guff/handlers/api.cr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guff/handlers/api.cr b/src/guff/handlers/api.cr index c6f78d7..eab0383 100644 --- a/src/guff/handlers/api.cr +++ b/src/guff/handlers/api.cr @@ -127,6 +127,8 @@ class Guff::Handlers::APIHandler < Guff::Handler version, get_posts, error, + get_users, + set_user, ], }) rescue e @@ -139,7 +141,7 @@ class Guff::Handlers::APIHandler < Guff::Handler end # send body - context.response.puts json + context.response << json end private def do_api_docs(context : HTTP::Server::Context) |