mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-30 04:52:46 +00:00
parent
096191ca24
commit
3b0774805c
4 changed files with 45 additions and 3 deletions
|
@ -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(),
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue