agecem-org/server.go

24 lines
324 B
Go
Raw Normal View History

2023-02-17 17:28:47 -05:00
package main
import (
"net/http"
"git.agecem.com/agecem/agecem-org/embed"
2023-02-17 17:28:47 -05:00
"github.com/labstack/echo/v4"
)
var html string
func init() {
html = embed.ReadHtml()
}
2023-02-17 17:28:47 -05:00
func Execute() {
e := echo.New()
2023-02-17 17:28:47 -05:00
e.GET("/", func(c echo.Context) error {
return c.HTML(http.StatusOK, html)
2023-02-17 17:28:47 -05:00
})
e.Logger.Fatal(e.Start(":8080"))
}