mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-24 17:50:04 +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_disable "msie6";
|
||||
client_max_body_size 4G;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user