Files
History_Api/internal/routes/notFoundRoute.go
2026-03-25 23:33:25 +07:00

19 lines
325 B
Go

package routes
import (
"history-api/internal/dtos/response"
"github.com/gofiber/fiber/v3"
)
func NotFoundRoute(app *fiber.App) {
app.Use(
func(c fiber.Ctx) error {
return c.Status(fiber.StatusNotFound).JSON(response.CommonResponse{
Status: false,
Message: "sorry, endpoint is not found",
})
},
)
}