mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-01 04:01:30 +08:00
fix: correct endpoint in setConfig function to include trailing slash
This commit is contained in:
@@ -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