FreePad/lib/controllers/controllers_header.go

16 lines
231 B
Go
Raw Normal View History

2022-05-22 20:15:11 +03:00
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")
2022-05-22 20:15:11 +03:00
// Move on
ctx.Next()
})
}