templates

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TemplatePaths = map[string]string{

		"/home":     "home",
		"/":         "home",
		"/login":    "login",
		"/register": "register",
		"/profile":  "profile",

		"/search/skills":    "search/skills",
		"/search/minigames": "search/minigames",
		"/ml/skills":        "ml/skills",
		"/ml/minigames":     "ml/minigames",
	}
	ALLOWED_DOMAINS = map[string]string{
		"script":  "https://*.hcaptcha.com https://cdnjs.cloudflare.com https://cdn.jsdelivr.net",
		"style":   "https://*.hcaptcha.com https://fonts.googleapis.com https://cdn.jsdelivr.net",
		"img":     "https://*.hcaptcha.com https://cdnjs.cloudflare.com",
		"font":    "https://fonts.googleapis.com https://fonts.gstatic.com  https://cdnjs.cloudflare.com",
		"frame":   "https://hcaptcha.com https://*.hcaptcha.com",
		"connect": "https://hcaptcha.com https://*.hcaptcha.com",
	}
)

Functions

func CreateTemplates

func CreateTemplates(app *fiber.App)

func NonceAndCSPMiddleware

func NonceAndCSPMiddleware() fiber.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL