💥 Unified the publisher api

This commit is contained in:
2024-11-09 00:47:19 +08:00
parent f9a01bff70
commit 615fe3ff6c
4 changed files with 19 additions and 12 deletions

View File

@@ -14,8 +14,8 @@ func MapAPIs(app *fiber.App, baseURL string) {
publishers.Post("/organization", createOrganizationPublisher)
publishers.Get("/:name/pins", listPinnedPost)
publishers.Get("/:name", getPublisher)
publishers.Put("/:publisherId", editPublisher)
publishers.Delete("/:publisherId", deletePublisher)
publishers.Put("/:name", editPublisher)
publishers.Delete("/:name", deletePublisher)
}
recommendations := api.Group("/recommendations").Name("Recommendations API")