package middleware import "github.com/danielgtaylor/huma/v2" // Deprecation marks responses from legacy routes as deprecated in favour of /api/v1. func Deprecation(ctx huma.Context, next func(huma.Context)) { ctx.AppendHeader("Warning", `299 - "Deprecated: This endpoint is deprecated. Use /api/v1/ endpoints instead."`) ctx.AppendHeader("Deprecation", "true") next(ctx) }