Unify db api

This commit is contained in:
Xin Wang
2026-02-26 01:58:39 +08:00
parent 56f8aa2191
commit 72ed7d0512
40 changed files with 3926 additions and 593 deletions

View File

@@ -6,6 +6,7 @@ const getApiBaseUrl = (): string => {
const configured = import.meta.env.VITE_API_BASE_URL || DEFAULT_API_BASE_URL;
return trimTrailingSlash(configured);
};
export { getApiBaseUrl };
type RequestOptions = {
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';