framework_v2/internal/app/server/http.go

15 lines
226 B
Go
Raw Normal View History

2024-06-15 16:55:25 +00:00
package server
import (
"framework_v2/internal/app/facades"
"framework_v2/internal/routes"
)
func InitHttp() {
if facades.Router == nil {
panic("You must call InitGin() before InitHttp()")
}
routes.InitApiRoutes()
}