From bafda84420c4db615ddcc424ffc274d29bb758f4 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Wed, 16 Oct 2024 10:57:43 +0200 Subject: [PATCH] Merge pull request #21072 from overleaf/msm-cleanup-post-labels [project-history] Cleanup POST /labels GitOrigin-RevId: 129f83ab72e4a9cd6f0f5fd7935fafa813ead919 --- services/project-history/app/js/Router.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/services/project-history/app/js/Router.js b/services/project-history/app/js/Router.js index 329cc501fb..d7233a511b 100644 --- a/services/project-history/app/js/Router.js +++ b/services/project-history/app/js/Router.js @@ -133,23 +133,7 @@ export function initialize(app) { comment: Joi.string().required(), created_at: Joi.string(), validate_exists: Joi.boolean().default(true), - user_id: Joi.string(), - }, - }), - - HttpController.createLabel - ) - - // Temporarily maintaining both paths for createLabel to support backwards - // compatibility while rolling out - https://github.com/overleaf/internal/pull/20200 - app.post( - '/project/:project_id/user/:user_id/labels', - validate({ - body: { - version: Joi.number().integer().required(), - comment: Joi.string().required(), - created_at: Joi.string(), - validate_exists: Joi.boolean().default(true), + user_id: Joi.string().allow(null), }, }),