package middlewares

import (
	"github.com/gofiber/fiber/v3"
)

// RejectAll middleware tüm gelen istekleri reddeder ve HTTP 500 döner.
func RejectAll() fiber.Handler {
	return func(c fiber.Ctx) error {
		return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{"error": "internal server error"})
	}
}
