Skip to content

Commit

Permalink
fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
BesOlivierBouchard committed Mar 23, 2024
1 parent 035f34d commit 741ff06
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions canopeum_frontend/src/services/apiInterface.ts
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;

0 comments on commit 741ff06

Please sign in to comment.