Files
Crimson-Gatekeeper/srv/cmd/gatekeeper/main.go

22 lines
360 B
Go
Raw Normal View History

2026-01-13 00:08:49 +08:00
package main
import (
"net/http"
"github.com/labstack/echo"
"Crimson-Gatekeeper/internal/common"
)
func main() {
2026-01-13 13:02:27 +08:00
client, close := common.GetDataBaseClient()
defer close()
2026-01-13 00:08:49 +08:00
app := echo.New()
app.GET("/", func(ctx echo.Context) error {
return ctx.String(http.StatusOK, "Hello, World!")
})
app.Logger.Fatal(app.Start(":8443"))
defer app.Close()
}