aboutsummaryrefslogtreecommitdiff
path: root/processors/meta.go
blob: 2c931b16cfeff825b2da9f83e7d674ad8425d36b (plain)
1
2
3
4
5
6
7
8
9
10
package processors

import "github.com/gofiber/fiber/v2"

const defaultTitle = "default"

func MetaContextProcessor(ctx *fiber.Ctx) error {
	ctx.Locals("Title", defaultTitle)
	return ctx.Next()
}