Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
fix: fixed public can view events now
Browse files Browse the repository at this point in the history
  • Loading branch information
KenNoYu committed Aug 13, 2024
1 parent 97f40f1 commit 222c939
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion client/src/pages/user/event-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const EventList: PageComponent = () => {
try {
const response = await httpClient.get<{ data: Event[] }>({
uri: `/event`,
withCredentials: 'access',
});
setEvents(response.data);
} catch (err) {
Expand Down
1 change: 0 additions & 1 deletion client/src/pages/user/join-events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const EventJoin: PageComponent = () => {
try {
const response = await httpClient.get<{ data: Event[] }>({
uri: `/event/${id}`,
withCredentials: 'access',
});

// retrieve events
Expand Down
2 changes: 0 additions & 2 deletions server/src/v1/route-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const routeMap: RoutingMap<`/v1/${string}`> = {
'/v1/event': {
GET: {
handler: getEvent,
accessLevel: 'authenticated',
authOptions: { allowNonActivated: true },
},
POST: {
Expand All @@ -84,7 +83,6 @@ const routeMap: RoutingMap<`/v1/${string}`> = {
},
GET: {
handler: getAnEvent,
accessLevel: 'authenticated',
authOptions: { allowNonActivated: true },
},
POST: {
Expand Down

0 comments on commit 222c939

Please sign in to comment.