mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 03:48:58 +00:00
* Add `/db/flush` and `/db/reset` API endpoints * Handle the unmarshalling errors better in the WebSocket * Handle Basenine connection error better in the WebSocket * Upgrade to Basenine `v0.6.5` * Fix the duplicated `StartTime` state Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com>
16 lines
313 B
Go
16 lines
313 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/up9inc/mizu/agent/pkg/controllers"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// DdRoutes defines the group of database routes.
|
|
func DbRoutes(app *gin.Engine) {
|
|
routeGroup := app.Group("/db")
|
|
|
|
routeGroup.GET("/flush", controllers.Flush)
|
|
routeGroup.GET("/reset", controllers.Reset)
|
|
}
|