From ef2c6d630f30c36bf59cd2811c1e38b2817488ac Mon Sep 17 00:00:00 2001 From: nyne Date: Wed, 30 Jul 2025 17:53:06 +0800 Subject: [PATCH] fix collection api. --- server/api/collection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/collection.go b/server/api/collection.go index d0ace90..533e42b 100644 --- a/server/api/collection.go +++ b/server/api/collection.go @@ -218,10 +218,10 @@ func AddCollectionRoutes(r fiber.Router) { cg.Post("/create", handleCreateCollection) cg.Post("/update", handleUpdateCollection) cg.Post("/delete", handleDeleteCollection) - cg.Get("/:id", handleGetCollection) cg.Get("/list", handleListUserCollections) - cg.Get("/:id/resources", handleListCollectionResources) cg.Post("/add_resource", handleAddResourceToCollection) cg.Post("/remove_resource", handleRemoveResourceFromCollection) cg.Get("/search", handleSearchUserCollections) + cg.Get("/:id/resources", handleListCollectionResources) + cg.Get("/:id", handleGetCollection) }