Editable content rating for every community moderator

This commit is contained in:
2025-04-05 12:06:11 +08:00
parent 1de0a86074
commit 26a267b111
2 changed files with 33 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ func MapAPIs(app *fiber.App, baseURL string) {
attachments.Post("/", sec.ValidatorMiddleware, createAttachmentDirectly)
attachments.Post("/referenced", sec.ValidatorMiddleware, createAttachmentWithURL)
attachments.Put("/:id", sec.ValidatorMiddleware, updateAttachmentMeta)
attachments.Put("/:id/rating", sec.ValidatorMiddleware, updateAttachmentRating)
attachments.Delete("/:id", sec.ValidatorMiddleware, deleteAttachment)
}