configworker/main.go

16 lines
220 B
Go
Raw Normal View History

2020-01-01 21:33:26 +00:00
package main
import "github.com/gin-gonic/gin"
import "log"
func login(ctx *gin.Context) {
ctx.Writer.WriteString("hello")
}
func main() {
eg := gin.New()
eg.GET("/api/login", login)
log.Fatal(eg.Run(":3001"))
}