mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
* Remove Buffalo * gofmt * pr fixes * fix subrouter * bring back secure middleware + pr fixes * better place for subrouter * vendor
13 lines
202 B
Go
13 lines
202 B
Go
package actions
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
|
|
"github.com/gomods/athens/pkg/build"
|
|
)
|
|
|
|
func versionHandler(w http.ResponseWriter, r *http.Request) {
|
|
json.NewEncoder(w).Encode(build.Data())
|
|
}
|