|
|
@ -52,6 +52,7 @@ func (handler *ApiHandler) ServeHTTP( |
|
|
dirs := strings.Split(request.URL.Path, "/") |
|
|
dirs := strings.Split(request.URL.Path, "/") |
|
|
switch dirs[0] { |
|
|
switch dirs[0] { |
|
|
case "version": |
|
|
case "version": |
|
|
|
|
|
response.Header().Set("Content-Type", "application/json") |
|
|
v, err := version.Versions.Json() |
|
|
v, err := version.Versions.Json() |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
http.Error(response, "Unable to encode version information", 500) |
|
|
http.Error(response, "Unable to encode version information", 500) |
|
|
|