Socialify

Folder ..

Viewing html.go
10 lines (8 loc) • 206.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
package middleware

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

func HTMLMiddleware() fiber.Handler {
	return func(c *fiber.Ctx) error {
		c.Set("Content-Type", "text/html; charset=utf-8")
		return c.Next()
	}
}