drive-health/lib/web/net.go

20 lines
253 B
Go
Raw Normal View History

package web
import (
"github.com/gin-gonic/gin"
)
func SetupRouter() *gin.Engine {
// Initialize the Gin engine
r := gin.Default()
// Setup Health Pings
setupHealth(r)
// Setup Api
setupApi(r)
// Setup Frontend
setupFrontend(r)
return r
}