Skip to content

Commit

Permalink
chore(admin-forms-routes): remove duplicate logic route endpoint (#1703)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalsqwib authored Apr 22, 2021
1 parent 0fe245b commit f597b6b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/app/routes/api/v3/admin/forms/admin-forms.routes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Router } from 'express'

import { withUserAuthentication } from '../../../../../modules/auth/auth.middlewares'
import { handleDeleteLogic } from '../../../../../modules/form/admin-form/admin-form.controller'

import { AdminFormsFeedbackRouter } from './admin-forms.feedback.routes'
import { AdminFormsFormRouter } from './admin-forms.form.routes'
Expand All @@ -23,19 +22,3 @@ AdminFormsRouter.use(AdminFormsSubmissionsRouter)
AdminFormsRouter.use(AdminFormsPreviewRouter)
AdminFormsRouter.use(AdminFormsPresignRouter)
AdminFormsRouter.use(AdminFormsLogicRouter)

/**
* Deletes a logic.
* @route DELETE /admin/forms/:formId/logic/:logicId
* @group admin
* @produces application/json
* @consumes application/json
* @returns 200 with success message when successfully deleted
* @returns 403 when user does not have permissions to delete logic
* @returns 404 when form cannot be found
* @returns 422 when user in session cannot be retrieved from the database
* @returns 500 when database error occurs
*/
AdminFormsRouter.route(
'/:formId([a-fA-F0-9]{24})/logic/:logicId([a-fA-F0-9]{24})',
).delete(handleDeleteLogic)

0 comments on commit f597b6b

Please sign in to comment.