Add collection api.

This commit is contained in:
2025-07-30 16:28:33 +08:00
parent f8c4509633
commit 17b40f2214
10 changed files with 740 additions and 37 deletions

View File

@@ -1,11 +1,12 @@
package main
import (
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/logger"
"log"
"nysoure/server/api"
"nysoure/server/middleware"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/logger"
)
func main() {
@@ -35,6 +36,7 @@ func main() {
api.AddCommentRoutes(apiG)
api.AddConfigRoutes(apiG)
api.AddActivityRoutes(apiG)
api.AddCollectionRoutes(apiG) // 新增
}
log.Fatal(app.Listen(":3000"))