fix: correct endpoint in setConfig function to include trailing slash

This commit is contained in:
shiyu
2025-08-24 19:53:33 +08:00
parent dfbc09233a
commit 96541cba42
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ http {
gzip on;
gzip_disable "msie6";
client_max_body_size 4G;
server {
listen 80;

View File

@@ -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() {