mirror of
https://github.com/JustKato/FreePad.git
synced 2026-03-30 16:39:45 +03:00
+ QR Code generation + Added micromodal * Bumped version by 0.0.8 * Updated DockerFile * Updated Changelog
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.2.0")
|
|
|
|
// Move on
|
|
ctx.Next()
|
|
})
|
|
|
|
}
|