12345678910111213141516171819202122 |
- package main
- import (
- "be-vpn/internal/server"
- "github.com/gin-gonic/gin"
- "log"
- )
- func main() {
- r := gin.Default()
- r.Use(gin.Recovery())
- r.Static("/static", "./static")
- r.POST("/register", server.Register)
- r.GET("/group", server.Group) // 天实云海
- r.GET("/v2/group", server.V2Group) // sweeter life
- r.GET("/secret", server.Secret)
- r.GET("/health", server.Health)
- if err := r.Run(":80"); err != nil {
- log.Fatalf("err: %+v", err)
- }
- }
|