package middleware

import (
	"github.com/gin-gonic/gin"
)

const (
	contentTypeHeader = "Content-Type"
	jsonContentType   = "application/json"
)

func JsonAPI() gin.HandlerFunc {
	return func(c *gin.Context) {
		c.Writer.Header().Set(contentTypeHeader, jsonContentType)
		c.Next()
	}
}
