main function

This commit is contained in:
cyrus 2024-05-24 20:35:49 +00:00
commit 75fb064345

13
main.go Normal file
View File

@ -0,0 +1,13 @@
package main
import "github.com/gin-gonic/gin"
func main() {
router := gin.Default()
router.GET("/version", func(c *gin.Context) {
c.JSON(200, gin.H{
"version": "0.0.1",
})
})
router.Run("0.0.0.0:80") // listen and serve on 0.0.0.0:8080
}