mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-28 22:08:34 +00:00
16 lines
329 B
Go
16 lines
329 B
Go
package routes
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
// NotFoundRoute func for describe 404 Error route.
|
|
func NotFoundRoute(fiberApp *fiber.App) {
|
|
fiberApp.Use(
|
|
func(c *fiber.Ctx) error {
|
|
return c.Status(fiber.StatusNotFound).JSON(fiber.Map{
|
|
"error": true,
|
|
"msg": "sorry, endpoint is not found",
|
|
})
|
|
},
|
|
)
|
|
}
|