smartchat-demo/main.go
2024-10-22 15:51:46 +06:00

18 lines
368 B
Go

package main
import (
"log"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/static"
)
func main() {
// Initialize a new Fiber app
app := fiber.New()
// Define a route for the GET method on the root path '/'
app.Get("/", static.New("./static"))
// Start the server on port 3000
log.Fatal(app.Listen(":3000"))
}