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

module Guff
  module API
    module TagAPI
      private def do_tag_get_tags(
        context : HTTP::Server::Context,
        args    : Hash(String, String)
      )
        [{foo: "bar"}, {foo: "asdf"}].to_json
      end

      private def do_tag_remove_tags(
        context : HTTP::Server::Context,
        args    : Hash(String, String)
      )
        true.to_json
      end
    end
  end
end