🔧 Simplify API endpoint paths by removing redundant '/api' prefix in GamemasterManager.vue

This commit is contained in:
2026-01-29 04:45:34 +00:00
parent 13e6ce7467
commit 81310abbce

View File

@@ -241,7 +241,7 @@ const loading = computed(() => statusLoading.value || gamemasterLoading.value);
onMounted(async () => {
// Load server status on component mount
await loadServerStatus(async () => {
const response = await apiClient.get('/api/gamemaster/status');
const response = await apiClient.get('/gamemaster/status');
return response;
});
});
@@ -272,10 +272,10 @@ async function saveToServer() {
saveSuccess.value = false;
resetSave();
await saveToServerData(async () => {
const result = await apiClient.post('/api/gamemaster/process', {});
const result = await apiClient.post('/gamemaster/process', {});
// Reload server status after save
await loadServerStatus(async () => {
const response = await apiClient.get('/api/gamemaster/status');
const response = await apiClient.get('/gamemaster/status');
return response;
});
return result;