Add endopoint to check is a given port is open on the client (#22)

This commit is contained in:
2023-12-31 12:52:08 +01:00
committed by GitHub
parent 2bbeeb34c5
commit f8e27bef56
8 changed files with 262 additions and 173 deletions

View File

@ -22,6 +22,7 @@ func SetupTemplate(r *gin.Engine) {
// Setup defines the endpoints
func Setup(r *gin.Engine) {
r.GET("/", getRoot)
r.GET("/scan/tcp/:port", scanTCPPort)
r.GET("/client-port", getClientPortAsString)
r.GET("/geo", getGeoAsString)
r.GET("/geo/:field", getGeoAsString)