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
2022-06-01 18:29:24 +03:00
ctx.Header("FreePad-Version", "1.4.0")
2022-05-22 20:15:11 +03:00
// Move on
ctx.Next()
})
}