This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/apis/trips/tripsgo/versionService.go
2022-11-03 16:41:13 -04:00

16 lines
268 B
Go

package tripsgo
import (
"fmt"
"net/http"
"os"
)
func versionGet(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain; charset=UTF-8")
w.WriteHeader(http.StatusOK)
version := os.Getenv("APP_VERSION")
fmt.Fprintf(w, version)
}