From 96541cba426a6dcadad4a9393b72a3b89c601615 Mon Sep 17 00:00:00 2001 From: shiyu Date: Sun, 24 Aug 2025 19:53:33 +0800 Subject: [PATCH] fix: correct endpoint in setConfig function to include trailing slash --- nginx.conf | 1 + web/src/api/config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index dd60544..ee0a187 100644 --- a/nginx.conf +++ b/nginx.conf @@ -22,6 +22,7 @@ http { gzip on; gzip_disable "msie6"; + client_max_body_size 4G; server { listen 80; diff --git a/web/src/api/config.ts b/web/src/api/config.ts index 4cc066e..c49d632 100644 --- a/web/src/api/config.ts +++ b/web/src/api/config.ts @@ -8,7 +8,7 @@ export async function setConfig(key: string, value: string) { const form = new FormData(); form.append('key', key); form.append('value', value); - return request('/config', { method: 'POST', formData: form }); + return request('/config/', { method: 'POST', formData: form }); } export async function getAllConfig() {