🚚 Update url mapping

This commit is contained in:
2024-05-18 20:54:44 +08:00
parent 7152380740
commit 4607e18fb3
2 changed files with 5 additions and 7 deletions

View File

@ -54,7 +54,7 @@ func NewServer() {
api := A.Group("/api").Name("API")
{
api.Get("/attachments/i/:id", getAttachmentMeta)
api.Get("/attachments/:id/meta", getAttachmentMeta)
api.Get("/attachments/:id", openAttachment)
api.Post("/attachments", authMiddleware, createAttachment)
api.Delete("/attachments/:id", authMiddleware, deleteAttachment)