mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 18:52:14 +01:00
make api endpoint url dynamic to environment
This commit is contained in:
@@ -984,7 +984,7 @@ const endpoints = makeApi([
|
||||
},
|
||||
]);
|
||||
|
||||
export const api = new Zodios('http://solidtime.test/api', endpoints);
|
||||
export const api = new Zodios('/api', endpoints);
|
||||
|
||||
export function createApiClient(baseUrl: string, options?: ZodiosOptions) {
|
||||
return new Zodios(baseUrl, endpoints, options);
|
||||
|
||||
Reference in New Issue
Block a user