rag/internal/middleware/http/json_response.go

11 lines
173 B
Go
Raw Normal View History

2024-06-16 06:00:31 +00:00
package http
import (
"github.com/gin-gonic/gin"
)
func MiddlewareJSONResponse(c *gin.Context) {
c.Header("Content-Type", "application/json; charset=utf-8")
c.Next()
}