mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-25 06:49:23 +01:00
14 lines
281 B
Go
14 lines
281 B
Go
package web
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
|
|
"github.com/amir20/dozzle/internal/support/cli"
|
|
)
|
|
|
|
func (h *handler) version(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Add("Content-Type", "text/html")
|
|
fmt.Fprintf(w, "<pre>%v commit: %v</pre>", h.config.Version, cli.SHA)
|
|
}
|