summaryrefslogtreecommitdiff
path: root/view/version.go
AgeCommit message (Collapse)Author
2024-10-23Switch to http.Handlerxengineering
The used `func(http.ResponseWriter, *http.Request)` return values made the HTTP handler factory functions quite unreadable. Thus it is switched to the http.Handler type.
2024-05-01view: Add /version endpointxengineering
This allows to get the server version via HTTP. The output of `git describe --dirty --always` and a line break is returned together with HTTP 200. If the server build contains no version information an error message and HTTP 404 is returned.