mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +00:00
fix collection api.
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user