aboutsummaryrefslogtreecommitdiff
path: root/src/guff/api-content-type.cr
blob: 9b6c74a658fb8d007550003187e7450f5e956d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Guff
  module APIContentType
    CONTENT_TYPES = {
      "development":  "text/html; charset=utf-8",
      "production":   "application/json; charset=utf8",
    }

    private def get_content_type
      CONTENT_TYPES[@model.config["environment"]]
    end
  end
end