aboutsummaryrefslogtreecommitdiff
path: root/src/guff/post-model.cr
blob: e0e82a48fb887d914a636ead2671b384bd495f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Guff
  class PostModel < Model
    def get_posts(req)
      # TODO
      [{foo: "bar"}, {foo: "asdf"}]
    end

    def add_post(req)
      # TODO: return post id
      {ok: true}
    end

    def remove_posts(req)
      # TODO
      {ok: true}
    end

    def set_tags(req)
      # TODO
      {ok: true}
    end
  end
end