Skip to content

Commit

Permalink
Removed older /viewComments endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mzparacha committed Dec 26, 2024
1 parent 0146ea5 commit e75aab9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 99 deletions.
1 change: 0 additions & 1 deletion packages/commonwealth/client/scripts/state/api/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const ApiEndpoints = {
// stand alone endpoints should be have upper snake case keys so we can easily tell them apart in code
FETCH_ADMIN: '/roles',
FETCH_COMMUNITY_STAKES: '/communityStakes',
FETCH_COMMENTS: '/viewComments',
FETCH_RELATED_COMMUNITIES: '/relatedCommunities',
FETCH_THREADS: '/threads',
FETCH_NODES: '/nodes',
Expand Down
90 changes: 0 additions & 90 deletions packages/commonwealth/server/routes/viewComments.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/commonwealth/server/routing/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import threadsUsersCountAndAvatars from '../routes/threadsUsersCountAndAvatars';
import updateBanner from '../routes/updateBanner';
import updateEmail from '../routes/updateEmail';
import updateSiteAdmin from '../routes/updateSiteAdmin';
import viewComments from '../routes/viewComments';

import setDefaultRole from '../routes/setDefaultRole';
import upgradeMember, {
Expand Down Expand Up @@ -316,13 +315,6 @@ function setupRouter(
);

// comments
registerRoute(
router,
'get',
'/viewComments',
databaseValidationService.validateCommunity,
viewComments.bind(this, models),
);
registerRoute(
router,
'get',
Expand Down

0 comments on commit e75aab9

Please sign in to comment.