Question description
How to serve javascript single app application?
Code snippet (optional)
package main
import "github.com/gofiber/fiber"
func main() {
app := fiber.New()
// ..
app.Static("/", "web/dist/web")
}
This only works for the client root routes. It won't work if the client has navigate to different route.
eg, /page1
Question description
How to serve javascript single app application?
Code snippet (optional)
This only works for the client root routes. It won't work if the client has navigate to different route.
eg, /page1