Initial commit: web_hghl_server
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"time"
|
||||
"videoweb/app/api/home"
|
||||
"videoweb/app/middleware/templatecache"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func homeRouter(r *gin.Engine) {
|
||||
r.GET("/api/app/home", home.Home)
|
||||
r.GET("/api/app/home/base", templatecache.WithCache(time.Minute*1), home.HomeBase)
|
||||
r.GET("/api/app/home/tags", templatecache.WithCache(time.Minute*1), home.HomeTags)
|
||||
}
|
||||
Reference in New Issue
Block a user