Skip to content

Commit b5a56c4

Browse files
authored
Merge branch 'dev' into bug/refresh
2 parents 27d7a5c + 36898eb commit b5a56c4

2 files changed

Lines changed: 3 additions & 17 deletions

File tree

src/api/adminEvent.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ export interface AdminEventOverrideUpdateResponse extends AdminActionResponse {
7878
export const createAdminEvent = async (
7979
body: AdminEventCreateRequest,
8080
): Promise<AdminActionResponse> => {
81-
const res = await api.post<AdminActionResponse>("/admin/events", body, {
82-
baseURL: "",
83-
});
81+
const res = await api.post<AdminActionResponse>("/admin/events", body);
8482
return res.data;
8583
};
8684

@@ -91,24 +89,19 @@ export const patchAdminEvent = async (
9189
const res = await api.patch<AdminActionResponse>(
9290
`/admin/events/${eventId}`,
9391
body,
94-
{ baseURL: "" },
9592
);
9693
return res.data;
9794
};
9895

9996
export const deleteAdminEvent = async (
10097
eventId: number,
10198
): Promise<AdminActionResponse> => {
102-
const res = await api.delete<AdminActionResponse>(`/admin/events/${eventId}`, {
103-
baseURL: "",
104-
});
99+
const res = await api.delete<AdminActionResponse>(`/admin/events/${eventId}`);
105100
return res.data;
106101
};
107102

108103
export const deleteAllAdminEvents = async (): Promise<AdminActionResponse> => {
109-
const res = await api.delete<AdminActionResponse>("/admin/events/delete", {
110-
baseURL: "",
111-
});
104+
const res = await api.delete<AdminActionResponse>("/admin/events/delete");
112105
return res.data;
113106
};
114107

@@ -121,7 +114,6 @@ export const syncAdminEventsFile = async (
121114
const res = await api.post<AdminActionResponse>(
122115
"/admin/events/sync-file",
123116
formData,
124-
{ baseURL: "" },
125117
);
126118

127119
return res.data;
@@ -134,7 +126,6 @@ export const updateAdminEventOverrides = async (
134126
const res = await api.patch<AdminEventOverrideUpdateResponse>(
135127
`/admin/events/${eventId}/overrides`,
136128
body,
137-
{ baseURL: "" },
138129
);
139130
return res.data;
140131
};

vite.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ export default defineConfig(({ mode }) => {
2020
changeOrigin: true,
2121
secure: false,
2222
},
23-
"/admin": {
24-
target: apiTarget,
25-
changeOrigin: true,
26-
secure: false,
27-
},
2823
},
2924
},
3025
};

0 commit comments

Comments
 (0)