Skip to content

Commit

Permalink
Untitled commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Dec 4, 2023
1 parent 177936a commit 480621f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/routes/v2/authenticatedSites/contactUs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { BadRequestError } = require("@errors/BadRequestError")

const {
attachReadRouteHandlerWrapper,
attachWriteRouteHandlerWrapper,
attachRollbackRouteHandlerWrapper,
} = require("@middleware/routeHandler")

const { UpdateContactUsSchema } = require("@validators/RequestSchema")
Expand Down Expand Up @@ -53,7 +53,7 @@ class ContactUsRouter {
const router = express.Router({ mergeParams: true })

router.get("/", attachReadRouteHandlerWrapper(this.readContactUs))
router.post("/", attachWriteRouteHandlerWrapper(this.updateContactUs))
router.post("/", attachRollbackRouteHandlerWrapper(this.updateContactUs))

return router
}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/v2/authenticatedSites/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { BadRequestError } = require("@errors/BadRequestError")

const {
attachReadRouteHandlerWrapper,
attachWriteRouteHandlerWrapper,
attachRollbackRouteHandlerWrapper,
} = require("@middleware/routeHandler")

const { UpdateNavigationRequestSchema } = require("@validators/RequestSchema")
Expand Down Expand Up @@ -52,7 +52,7 @@ class NavigationRouter {
const router = express.Router({ mergeParams: true })

router.get("/", attachReadRouteHandlerWrapper(this.readNavigation))
router.post("/", attachWriteRouteHandlerWrapper(this.updateNavigation))
router.post("/", attachRollbackRouteHandlerWrapper(this.updateNavigation))

return router
}
Expand Down
3 changes: 1 addition & 2 deletions src/routes/v2/authenticatedSites/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const { BadRequestError } = require("@errors/BadRequestError")
// Import middleware
const {
attachReadRouteHandlerWrapper,
attachWriteRouteHandlerWrapper,
attachRollbackRouteHandlerWrapper,
} = require("@middleware/routeHandler")

Expand Down Expand Up @@ -136,7 +135,7 @@ class SettingsRouter {
router.post(
"/repo-password",
this.authorizationMiddleware.verifyIsEmailUser,
attachWriteRouteHandlerWrapper(this.updateRepoPassword)
attachReadRouteHandlerWrapper(this.updateRepoPassword)
)

return router
Expand Down

0 comments on commit 480621f

Please sign in to comment.