d5 / api /router.go
sanbo
upate
6390363
raw
history blame
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)
}