d1 / old /api /router.go
sanbo
update sth. at 2025-02-06 17:45:33
1214fba
raw
history blame contribute delete
262 Bytes
package api
import (
"aurora/initialize"
"github.com/gin-gonic/gin"
"net/http"
)
var router *gin.Engine
func init() {
// 初始化gin
router = initialize.RegisterRouter()
}
func Listen(w http.ResponseWriter, r *http.Request) {
router.ServeHTTP(w, r)
}