15 lines
223 B
Go
15 lines
223 B
Go
package http
|
|
|
|
import (
|
|
"framework_v2/internal/access"
|
|
"framework_v2/internal/http/routes"
|
|
)
|
|
|
|
func InitHttp() {
|
|
if access.Router == nil {
|
|
panic("You must call InitGin() before InitHttp()")
|
|
}
|
|
|
|
routes.InitApiRoutes()
|
|
}
|