mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-27 13:33:26 +00:00
* Update main.go, extensions.go, and 2 more files... * Update config_routes.go, entries_routes.go, and 7 more files...
18 lines
506 B
Go
18 lines
506 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/up9inc/mizu/agent/pkg/controllers"
|
|
"github.com/up9inc/mizu/agent/pkg/middlewares"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// EntriesRoutes defines the group of har entries routes.
|
|
func EntriesRoutes(ginApp *gin.Engine) {
|
|
routeGroup := ginApp.Group("/entries")
|
|
routeGroup.Use(middlewares.RequiresAuth())
|
|
|
|
routeGroup.GET("/", controllers.GetEntries) // get entries (base/thin entries) and metadata
|
|
routeGroup.GET("/:id", controllers.GetEntry) // get single (full) entry
|
|
}
|