mirror of
https://github.com/JustKato/FreePad.git
synced 2026-02-23 15:50:46 +02:00
+ FreePad version in ContentHeaders
This commit is contained in:
15
lib/controllers/controllers_header.go
Normal file
15
lib/controllers/controllers_header.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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()
|
||||
})
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user