mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-22 14:04:28 +00:00
added build nr to about endpoint
This commit is contained in:
parent
7ef4038ed3
commit
d1b8c6b770
@ -212,9 +212,10 @@ func main() {
|
||||
router.GET("/v1/about", func(c *gin.Context) {
|
||||
type About struct {
|
||||
SupportedApiVersions []string `json:"versions"`
|
||||
BuildNr int `json:"build"`
|
||||
}
|
||||
|
||||
about := About{SupportedApiVersions: []string{"v1", "v2"}}
|
||||
about := About{SupportedApiVersions: []string{"v1", "v2"}, BuildNr: 2}
|
||||
c.JSON(200, about)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user