mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-09-08 17:16:50 +08:00
fix: correct endpoint in setConfig function to include trailing slash
This commit is contained in:
@@ -22,6 +22,7 @@ http {
|
|||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_disable "msie6";
|
gzip_disable "msie6";
|
||||||
|
client_max_body_size 4G;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export async function setConfig(key: string, value: string) {
|
|||||||
const form = new FormData();
|
const form = new FormData();
|
||||||
form.append('key', key);
|
form.append('key', key);
|
||||||
form.append('value', value);
|
form.append('value', value);
|
||||||
return request('/config', { method: 'POST', formData: form });
|
return request('/config/', { method: 'POST', formData: form });
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getAllConfig() {
|
export async function getAllConfig() {
|
||||||
|
|||||||
Reference in New Issue
Block a user