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

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