Merge pull request #18644 from overleaf/ii-delete-with-body-teardown-old-routes

[web] Tear down deprecated routes

GitOrigin-RevId: b86e1d9283a30d36f77148eeb782a7f37987854a
This commit is contained in:
ilkin-overleaf 2024-06-05 13:41:00 +03:00 committed by Copybot
parent e452f1df5b
commit dd7970c11d

View file

@ -951,18 +951,6 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) {
RateLimiterMiddleware.rateLimit(rateLimiters.removeProjectFromTag),
TagsController.removeProjectFromTag
)
// Deprecated
webRouter.delete(
'/tag/:tagId/projects',
AuthenticationController.requireLogin(),
RateLimiterMiddleware.rateLimit(rateLimiters.removeProjectsFromTag),
validate({
body: Joi.object({
projectIds: Joi.array().items(Joi.string()).required(),
}),
}),
TagsController.removeProjectsFromTag
)
webRouter.post(
'/tag/:tagId/projects/remove',
AuthenticationController.requireLogin(),