fix collection api.

This commit is contained in:
2025-07-30 17:53:06 +08:00
parent a56eb559ba
commit ef2c6d630f

View File

@@ -218,10 +218,10 @@ func AddCollectionRoutes(r fiber.Router) {
cg.Post("/create", handleCreateCollection) cg.Post("/create", handleCreateCollection)
cg.Post("/update", handleUpdateCollection) cg.Post("/update", handleUpdateCollection)
cg.Post("/delete", handleDeleteCollection) cg.Post("/delete", handleDeleteCollection)
cg.Get("/:id", handleGetCollection)
cg.Get("/list", handleListUserCollections) cg.Get("/list", handleListUserCollections)
cg.Get("/:id/resources", handleListCollectionResources)
cg.Post("/add_resource", handleAddResourceToCollection) cg.Post("/add_resource", handleAddResourceToCollection)
cg.Post("/remove_resource", handleRemoveResourceFromCollection) cg.Post("/remove_resource", handleRemoveResourceFromCollection)
cg.Get("/search", handleSearchUserCollections) cg.Get("/search", handleSearchUserCollections)
cg.Get("/:id/resources", handleListCollectionResources)
cg.Get("/:id", handleGetCollection)
} }