diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-09-02 16:18:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 16:18:08 +0100 |
commit | 3b0774805cd06e1d9094a5b0773126cbfb573abb (patch) | |
tree | a3eb2fdaa28c8f88ace5294743910eddac74964f /federationapi/routing | |
parent | 096191ca240776031370e99b93732557972ba92a (diff) |
Version imprint (#1383)
* Versions
* Update build.sh
Diffstat (limited to 'federationapi/routing')
-rw-r--r-- | federationapi/routing/version.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/federationapi/routing/version.go b/federationapi/routing/version.go index 14ecd21e..906fc2b9 100644 --- a/federationapi/routing/version.go +++ b/federationapi/routing/version.go @@ -17,6 +17,7 @@ package routing import ( "net/http" + "github.com/matrix-org/dendrite/internal" "github.com/matrix-org/util" ) @@ -31,5 +32,13 @@ type server struct { // Version returns the server version func Version() util.JSONResponse { - return util.JSONResponse{Code: http.StatusOK, JSON: &version{server{"dev", "Dendrite"}}} + return util.JSONResponse{ + Code: http.StatusOK, + JSON: &version{ + server{ + Name: "Dendrite", + Version: internal.VersionString(), + }, + }, + } } |