2024-06-13 07:36:51 +00:00
|
|
|
package http
|
|
|
|
|
|
|
|
import (
|
|
|
|
"framework_v2/internal/access"
|
2024-06-13 08:36:10 +00:00
|
|
|
"framework_v2/internal/providers"
|
2024-06-13 07:36:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func InitHttp() {
|
|
|
|
if access.Router == nil {
|
|
|
|
panic("You must call InitGin() before InitHttp()")
|
|
|
|
}
|
|
|
|
|
2024-06-13 08:36:10 +00:00
|
|
|
providers.InitApiRoutes()
|
2024-06-13 07:36:51 +00:00
|
|
|
}
|