1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 14:36:47 +00:00
文件
tunasync/tests/httpServer.go
2016-04-30 16:43:06 +08:00

18 行
257 B
Go

// +build ignore
package main
import (
"net/http"
"github.com/gin-gonic/gin"
)
func main() {
s := gin.Default()
s.GET("/", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"msg": "passed"})
})
s.RunTLS(":5002", "manager.crt", "manager.key")
}