Compare commits

..

2 Commits

1 changed files with 4 additions and 0 deletions

View File

@ -317,6 +317,10 @@ func main() {
c.String(200, "Burgernotes Version 2.0 Beta 1") 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) { router.POST("/api/signup", func(c *gin.Context) {
var data map[string]interface{} var data map[string]interface{}
err := c.ShouldBindJSON(&data) err := c.ShouldBindJSON(&data)