aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-09-02 16:18:08 +0100
committerGitHub <noreply@github.com>2020-09-02 16:18:08 +0100
commit3b0774805cd06e1d9094a5b0773126cbfb573abb (patch)
treea3eb2fdaa28c8f88ace5294743910eddac74964f /federationapi/routing
parent096191ca240776031370e99b93732557972ba92a (diff)
Version imprint (#1383)
* Versions * Update build.sh
Diffstat (limited to 'federationapi/routing')
-rw-r--r--federationapi/routing/version.go11
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(),
+ },
+ },
+ }
}