mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-25 03:49:12 +00:00
31 lines
909 B
Go
31 lines
909 B
Go
package routes
|
|
|
|
import (
|
|
"mizuserver/pkg/controllers"
|
|
"mizuserver/pkg/middlewares"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func StatusRoutes(ginApp *gin.Engine) {
|
|
routeGroup := ginApp.Group("/status")
|
|
routeGroup.Use(middlewares.RequiresAuth())
|
|
|
|
routeGroup.GET("/health", controllers.HealthCheck)
|
|
|
|
routeGroup.POST("/tappedPods", controllers.PostTappedPods)
|
|
routeGroup.POST("/tapperStatus", controllers.PostTapperStatus)
|
|
routeGroup.GET("/connectedTappersCount", controllers.GetConnectedTappersCount)
|
|
routeGroup.GET("/tap", controllers.GetTappingStatus)
|
|
|
|
routeGroup.GET("/auth", controllers.GetAuthStatus)
|
|
|
|
routeGroup.GET("/analyze", controllers.AnalyzeInformation)
|
|
|
|
routeGroup.GET("/general", controllers.GetGeneralStats) // get general stats about entries in DB
|
|
|
|
routeGroup.GET("/recentTLSLinks", controllers.GetRecentTLSLinks)
|
|
|
|
routeGroup.GET("/resolving", controllers.GetCurrentResolvingInformation)
|
|
}
|