mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-18 16:38:38 +00:00
15 lines
413 B
Go
15 lines
413 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/up9inc/mizu/agent/pkg/controllers"
|
|
)
|
|
|
|
// EntriesRoutes defines the group of har entries routes.
|
|
func EntriesRoutes(ginApp *gin.Engine) {
|
|
routeGroup := ginApp.Group("/entries")
|
|
|
|
routeGroup.GET("/", controllers.GetEntries) // get entries (base/thin entries) and metadata
|
|
routeGroup.GET("/:id", controllers.GetEntry) // get single (full) entry
|
|
}
|