mirror of https://github.com/JustKato/FreePad.git
16 lines
231 B
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.1.0")
|
||
|
|
||
|
// Move on
|
||
|
ctx.Next()
|
||
|
})
|
||
|
|
||
|
}
|