mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #21072 from overleaf/msm-cleanup-post-labels
[project-history] Cleanup POST /labels GitOrigin-RevId: 129f83ab72e4a9cd6f0f5fd7935fafa813ead919
This commit is contained in:
parent
d8ce066898
commit
bafda84420
1 changed files with 1 additions and 17 deletions
|
@ -133,23 +133,7 @@ export function initialize(app) {
|
||||||
comment: Joi.string().required(),
|
comment: Joi.string().required(),
|
||||||
created_at: Joi.string(),
|
created_at: Joi.string(),
|
||||||
validate_exists: Joi.boolean().default(true),
|
validate_exists: Joi.boolean().default(true),
|
||||||
user_id: Joi.string(),
|
user_id: Joi.string().allow(null),
|
||||||
},
|
|
||||||
}),
|
|
||||||
|
|
||||||
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),
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue