-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
035f34d
commit 741ff06
Showing
1 changed file
with
2 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,9 @@ | ||
import { | ||
AnnouncementClient, | ||
AuthenticationClient, | ||
BatchClient, | ||
CommentClient, | ||
ContactClient, | ||
LikeClient, | ||
PostClient, | ||
SiteClient, | ||
UserClient, | ||
WidgetClient, | ||
Client | ||
} from './api'; | ||
|
||
const API_URL = String(import.meta.env.VITE_API_URL); | ||
|
||
const api = { | ||
batches: new BatchClient(API_URL), | ||
sites: new SiteClient(API_URL), | ||
authentication: new AuthenticationClient(API_URL), | ||
posts: new PostClient(API_URL), | ||
comments: new CommentClient(API_URL), | ||
likes: new LikeClient(API_URL), | ||
announcements: new AnnouncementClient(API_URL), | ||
contacts: new ContactClient(API_URL), | ||
widgets: new WidgetClient(API_URL), | ||
users: new UserClient(API_URL), | ||
}; | ||
const api = new Client(API_URL); | ||
|
||
export default api; |