Spaces:
Sleeping
Sleeping
File size: 262 Bytes
931bd01 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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)
}
|