🔧 Simplify API endpoint paths by removing redundant '/api' prefix in GamemasterManager.vue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user