2023-10-19 18:01:48 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/labstack/echo/v4"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
e := echo.New()
|
2023-10-19 18:05:16 +02:00
|
|
|
e.Static("/", "static")
|
2023-10-19 18:01:48 +02:00
|
|
|
e.GET("/", func(c echo.Context) error {
|
|
|
|
return c.String(http.StatusOK, "Hello, World!")
|
|
|
|
})
|
|
|
|
e.Logger.Fatal(e.Start(":1323"))
|
|
|
|
}
|