aboutsummaryrefslogtreecommitdiff
path: root/src/guff/api/file.cr
blob: 353de9d33913c5ffb96c590eddfa5a9e23de58fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "json"

module Guff
  module API
    module FileAPI
      private def do_file_add(
        context : HTTP::Server::Context,
        args    : Hash(String, String)
      )
        # TODO
        {ok: true}.to_json
      end

      private def do_file_remove(
        context : HTTP::Server::Context,
        args    : Hash(String, String)
      )
        # TODO
        {ok: true}.to_json
      end
    end
  end
end