diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-08 05:06:34 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-08 05:06:34 -0500 |
commit | 2c60a34cbe95d34950977e59d9316a1885b4fd6f (patch) | |
tree | cd510b6bf03e9eb9ebdccd5ec4a4f92acfdc3669 /src/guff/api/dir.cr | |
parent | 490464d7d07e94b6ee69bbbc4b290a2b0e3a0975 (diff) | |
download | old-guff-2c60a34cbe95d34950977e59d9316a1885b4fd6f.tar.bz2 old-guff-2c60a34cbe95d34950977e59d9316a1885b4fd6f.zip |
reorganize api
Diffstat (limited to 'src/guff/api/dir.cr')
-rw-r--r-- | src/guff/api/dir.cr | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/guff/api/dir.cr b/src/guff/api/dir.cr new file mode 100644 index 0000000..9b3779e --- /dev/null +++ b/src/guff/api/dir.cr @@ -0,0 +1,23 @@ +require "json" + +module Guff + module API + module DirAPI + private def do_dir_add( + context : HTTP::Server::Context, + args : Hash(String, String) + ) + # TODO + {ok: true}.to_json + end + + private def do_dir_remove( + context : HTTP::Server::Context, + args : Hash(String, String) + ) + # TODO + {ok: true}.to_json + end + end + end +end |