blob: 8a186bb19270d6b34de68ab8a86b33009bb9740d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package middleware
import (
"dove/config"
"github.com/gofiber/fiber/v2"
)
func globals(context *fiber.Ctx) error {
context.Locals("AuthEnabled", config.AuthEnabled)
return context.Next()
}
|