소스 검색

Use Jason for rendering responses

Although Jason readme says Phoenix 1.4+ already does it by default, [it actually does it only for new projects](3bfb9f6e90/lib/phoenix.ex (L58-L59))
tags/v1.1.4
rinpatch 4 년 전
부모
커밋
56828abf6d
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      config/config.exs
  2. +1
    -0
      lib/pleroma/healthcheck.ex

+ 2
- 0
config/config.exs 파일 보기

@@ -373,6 +373,8 @@ config :pleroma, :chat, enabled: true

config :phoenix, :format_encoders, json: Jason

config :phoenix, :json_library, Jason

config :pleroma, :gopher,
enabled: false,
ip: {0, 0, 0, 0},


lib/healthcheck.ex → lib/pleroma/healthcheck.ex 파일 보기

@@ -9,6 +9,7 @@ defmodule Pleroma.Healthcheck do
alias Pleroma.Healthcheck
alias Pleroma.Repo

@derive Jason.Encoder
defstruct pool_size: 0,
active: 0,
idle: 0,

불러오는 중...
취소
저장