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