Skip to content

Commit

Permalink
Remove task comments endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
alexd-bes committed Jul 22, 2024
1 parent 802e108 commit 498b1be
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 435 deletions.
3 changes: 0 additions & 3 deletions packages/central-server/src/apiV2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ import {
} from './dashboardMailingListEntries';
import { EditEntityHierarchy, GETEntityHierarchy } from './entityHierarchy';
import { CreateTask, EditTask, GETTasks } from './tasks';
import { CreateTaskComment, GETTaskComments } from './taskComments';

// quick and dirty permission wrapper for open endpoints
const allowAnyone = routeHandler => (req, res, next) => {
Expand Down Expand Up @@ -270,7 +269,6 @@ apiV2.get('/entityHierarchy/:recordId?', useRouteHandler(GETEntityHierarchy));
apiV2.get('/landingPages/:recordId?', useRouteHandler(GETLandingPages));
apiV2.get('/suggestSurveyCode', catchAsyncErrors(suggestSurveyCode));
apiV2.get('/tasks/:recordId?', useRouteHandler(GETTasks));
apiV2.get('/tasks/:parentRecordId/taskComments', useRouteHandler(GETTaskComments));
/**
* POST routes
*/
Expand Down Expand Up @@ -318,7 +316,6 @@ apiV2.post('/surveys', multipartJson(), useRouteHandler(CreateSurvey));
apiV2.post('/dhisInstances', useRouteHandler(BESAdminCreateHandler));
apiV2.post('/supersetInstances', useRouteHandler(BESAdminCreateHandler));
apiV2.post('/tasks', useRouteHandler(CreateTask));
apiV2.post('/tasks/:parentRecordId/taskComments', useRouteHandler(CreateTaskComment));
/**
* PUT routes
*/
Expand Down

This file was deleted.

38 changes: 0 additions & 38 deletions packages/central-server/src/apiV2/taskComments/GETTaskComments.js

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions packages/central-server/src/apiV2/taskComments/index.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit 498b1be

Please sign in to comment.