|
|
@ -37,11 +37,9 @@ func UseVitePage[T any](l *sl.ServiceLocator, mountPoint, frontendHtml string) f
|
|
|
|
log.Fatal(err)
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
frontendPath := path.Join("./frontend/", frontendHtml)
|
|
|
|
dev.HtmlRouteBindings[mountPoint] = path.Join("./frontend/", frontendHtml)
|
|
|
|
|
|
|
|
|
|
|
|
dev.HtmlRouteBindings[mountPoint] = frontendPath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return func(c *fiber.Ctx) error {
|
|
|
|
return func(c *fiber.Ctx) error {
|
|
|
|
return c.SendFile(frontendPath)
|
|
|
|
return c.SendFile(path.Join("./out/frontend/", frontendHtml))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|