Stickers and sticker packs

This commit is contained in:
2024-08-03 15:43:15 +08:00
parent 8070a87078
commit ad1d82a2ff
10 changed files with 390 additions and 37 deletions

View File

@@ -13,5 +13,15 @@ func MapAPIs(app *fiber.App, baseURL string) {
api.Post("/attachments", createAttachment)
api.Put("/attachments/:id", updateAttachmentMeta)
api.Delete("/attachments/:id", deleteAttachment)
api.Get("/stickers/packs", listStickerPacks)
api.Post("/stickers/packs", createStickerPack)
api.Put("/stickers/packs/:packId", updateStickerPack)
api.Delete("/stickers/packs/:packId", deleteStickerPack)
api.Get("/stickers/:stickerId", getSticker)
api.Post("/stickers", createSticker)
api.Put("/stickers/:stickerId", updateSticker)
api.Delete("/stickers/:stickerId", deleteSticker)
}
}