forked from Ailur/burgernotes-server
Add a JSON version option to make it easier for machine processing
This commit is contained in:
parent
8e1b3eaec9
commit
a7c3a5d364
4
main.go
4
main.go
|
@ -317,6 +317,10 @@ func main() {
|
|||
c.String(200, "Burgernotes Version 2.0 Beta 1")
|
||||
})
|
||||
|
||||
router.GET("/api/versionjson", func(c *gin.Context) {
|
||||
c.JSON(200, gin.H{"name": "Burgernotes", "versiontxt": "Version 2.0 Beta 1", "versionsem": "2.0.0b1", "versionnum": "200"})
|
||||
})
|
||||
|
||||
router.POST("/api/signup", func(c *gin.Context) {
|
||||
var data map[string]interface{}
|
||||
err := c.ShouldBindJSON(&data)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue