You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
259 B
Go

2 years ago
package server
import (
"aziis98.com/template-go-vitejs/backend"
"github.com/gofiber/fiber/v2"
)
type Dependencies struct {
DB backend.Database
}
func New(deps Dependencies) *fiber.App {
app := fiber.New()
registerRoutes(app, deps.DB)
return app
}