summaryrefslogtreecommitdiff
path: root/processors/metadata.go
blob: 96fcdb224d5da1a4ed8d98bbdd2113170985f03a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package processors

import (
	"lain/config"

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

const defaultTitle = "Lain | Present day, present time!"

func metadata(ctx *fiber.Ctx) error {
	ctx.Locals("Title", defaultTitle)
	ctx.Locals("AppName", config.Server.AppName)
	ctx.Locals("AppDescription", config.Server.AppDescription)
	ctx.Locals("AppEngine", config.Server.AppEngine)

	return ctx.Next()
}