chore: sync
This commit is contained in:
@@ -52,6 +52,14 @@ func Setup(cfg *config.Config) *gin.Engine {
|
||||
admin := handler.NewAdminHandler(workSvc)
|
||||
|
||||
// ─── Public routes ────────────────────────────────────────────────────────
|
||||
r.GET("/", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{
|
||||
"service": "SproutWorkCollect API",
|
||||
"version": "v1",
|
||||
"endpoints": []string{"/api/settings", "/api/works", "/api/works/{work_id}", "/api/search", "/api/categories", "/api/like/{work_id}"},
|
||||
})
|
||||
})
|
||||
|
||||
api := r.Group("/api")
|
||||
{
|
||||
api.GET("/settings", pub.GetSettings)
|
||||
|
||||
Reference in New Issue
Block a user