aboutsummaryrefslogtreecommitdiff
path: root/src/guff/api/content-type.cr
blob: 589e6b00b45eed07906467db7ce0634e871e600f (plain)
1
2
3
4
5
6
7
8
9
10
module Guff::API::ContentType
  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