Attachment pool basis

This commit is contained in:
2024-08-18 12:01:41 +08:00
parent de6215cffe
commit dd0f7399a6
10 changed files with 226 additions and 18 deletions

View File

@@ -7,6 +7,12 @@ func MapAPIs(app *fiber.App, baseURL string) {
api := app.Group(baseURL).Name("API")
{
api.Get("/pools", listPost)
api.Get("/pools/:id", getPool)
api.Post("/pools", createPool)
api.Put("/pools/:id", updatePool)
api.Delete("/pools/:id", deletePool)
api.Get("/attachments", listAttachment)
api.Get("/attachments/:id/meta", getAttachmentMeta)
api.Get("/attachments/:id", openAttachment)