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.

15 lines
288 B
Go

2 years ago
package server
import (
"aziis98.com/template-go-vitejs/backend"
"github.com/gofiber/fiber/v2"
)
func registerRoutes(r fiber.Router, db backend.Database) {
r.Get("/", func(c *fiber.Ctx) error {
return c.SendFile("./out/frontend/index.html")
})
r.Static("/", "./out/frontend")
}