aboutsummaryrefslogtreecommitdiff
path: root/src/guff/api-content-type.cr
blob: d6e1f83e65492cd4ff22408bac46eb428a2a469a (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[@models.config["environment"]]
    end
  end
end