FreePad/lib/controllers/controllers_header.go

16 lines
231 B
Go

package controllers
import "github.com/gin-gonic/gin"
func ApplyHeaders(router *gin.Engine) {
router.Use(func(ctx *gin.Context) {
// Apply the header
ctx.Header("FreePad-Version", "1.2.0")
// Move on
ctx.Next()
})
}