List attachments api

This commit is contained in:
2024-07-25 22:12:00 +08:00
parent 9ceb9925dd
commit 01e395b2bf
3 changed files with 49 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ func MapAPIs(app *fiber.App, baseURL string) {
api := app.Group(baseURL).Name("API")
{
api.Get("/attachments", list)
api.Get("/attachments", listAttachment)
api.Get("/attachments/:id/meta", getAttachmentMeta)
api.Get("/attachments/:id", openAttachment)
api.Post("/attachments", createAttachment)