Compare commits
2 Commits
8e1b3eaec9
...
fa75483cb3
Author | SHA1 | Date |
---|---|---|
Tracker-Friendly | fa75483cb3 | |
Tracker-Friendly | a7c3a5d364 |
4
main.go
4
main.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue