framework_v2/internal/routes/init.go

14 lines
187 B
Go
Raw Normal View History

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