From 1c8454a658109ac029026fa30215113013eb47e8 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 28 Dec 2024 13:32:08 +0800 Subject: [PATCH] :boom: Change multipart upload API to fragment one --- pkg/internal/server/api/index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/internal/server/api/index.go b/pkg/internal/server/api/index.go index a3817f1..69167b5 100644 --- a/pkg/internal/server/api/index.go +++ b/pkg/internal/server/api/index.go @@ -23,8 +23,8 @@ func MapAPIs(app *fiber.App, baseURL string) { api.Put("/attachments/:id", sec.ValidatorMiddleware, updateAttachmentMeta) api.Delete("/attachments/:id", sec.ValidatorMiddleware, deleteAttachment) - api.Post("/attachments/multipart", sec.ValidatorMiddleware, createAttachmentFragment) - api.Post("/attachments/multipart/:file/:chunk", sec.ValidatorMiddleware, uploadFragmentChunk) + api.Post("/fragments", sec.ValidatorMiddleware, createAttachmentFragment) + api.Post("/fragments/:file/:chunk", sec.ValidatorMiddleware, uploadFragmentChunk) api.Get("/stickers/lookup", lookupStickerBatch) api.Get("/stickers/lookup/:alias", lookupSticker)