From c5786aab2bb76a0a4064a49f81e9600d73adfa82 Mon Sep 17 00:00:00 2001 From: logikonline Date: Tue, 17 Mar 2026 01:15:01 -0400 Subject: [PATCH] fix(api): use internal json module in pages API Replace stdlib encoding/json with internal json module for consistency with rest of codebase. Ensures proper handling of edge cases and custom marshaling behavior. --- routers/api/v2/pages_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v2/pages_api.go b/routers/api/v2/pages_api.go index e9cedae72f..248499a825 100644 --- a/routers/api/v2/pages_api.go +++ b/routers/api/v2/pages_api.go @@ -4,7 +4,7 @@ package v2 import ( - "encoding/json" + "code.gitcaddy.com/server/v3/modules/json" "net/http" repo_model "code.gitcaddy.com/server/v3/models/repo"