mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
added build nr to about endpoint
This commit is contained in:
@@ -212,9 +212,10 @@ func main() {
|
|||||||
router.GET("/v1/about", func(c *gin.Context) {
|
router.GET("/v1/about", func(c *gin.Context) {
|
||||||
type About struct {
|
type About struct {
|
||||||
SupportedApiVersions []string `json:"versions"`
|
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)
|
c.JSON(200, about)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user