ipInfo_router.go 439 Bytes
Newer Older
qiuqunfeng's avatar
qiuqunfeng committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package api

import (
	"github.com/gin-gonic/gin"
	"gitlab.com/tensorsecurity-rd/waf-console/internal/controller"
)

func SetIPInforRouter(e *gin.Engine) {
	v1 := e.Group("api/v1")

	// apiKey := os.Getenv("API_KEY")

	// ipInforController := controller.NewIpInfoController(apiKey)

	// v1.GET("ip/:ip", ipInforController.QueryIP)

	systemController := controller.NewSystemController()
	v1.GET("systemInfo", systemController.SystemInfo)
}