add healthcheck endpoint

This commit is contained in:
Khanh Ngo 2021-11-21 10:30:49 +01:00
parent 578e9e61e5
commit 076c68732c
No known key found for this signature in database
GPG key ID: 920A7D645DCB23DF
3 changed files with 9 additions and 1 deletions

View file

@ -24,6 +24,13 @@ import (
"github.com/ngoduykhanh/wireguard-ui/util"
)
// Health check handler
func Health() echo.HandlerFunc {
return func(c echo.Context) error {
return c.String(http.StatusOK, "ok")
}
}
// LoginPage handler
func LoginPage() echo.HandlerFunc {
return func(c echo.Context) error {