Add /about endpoint

This commit is contained in:
Carl Pearson
2025-05-30 05:59:42 -06:00
parent 5da3d30817
commit c3237473c3
3 changed files with 29 additions and 11 deletions

16
handlers/about.go Normal file
View File

@@ -0,0 +1,16 @@
package handlers
import (
"net/http"
"github.com/labstack/echo/v4"
"git.sr.ht/~cwpearson/replicate-jump-server/config"
)
func AboutGet(c echo.Context) error {
return c.JSON(http.StatusOK, map[string]string{
"version": config.GitSHA(),
"build-date": config.BuildDate(),
})
}