diff --git a/canopeum_frontend/src/services/apiInterface.ts b/canopeum_frontend/src/services/apiInterface.ts index aa9ac6533..58d9fdd43 100644 --- a/canopeum_frontend/src/services/apiInterface.ts +++ b/canopeum_frontend/src/services/apiInterface.ts @@ -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;