handler

package
v0.0.0-...-62fab66 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package handler defines the http handlers

Index

Constants

This section is empty.

Variables

View Source
var CsrfProtection = csrf.New(csrf.Config{
	KeyLookup:      "form:_csrf",
	CookieName:     "csrf_",
	CookieSameSite: "Strict",
	Expiration:     1 * time.Hour,
	KeyGenerator:   utils.UUIDv4,
	ContextKey:     "token",
	ErrorHandler:   csrfErrorHandler,
	SingleUseToken: true,
})

CsrfProtection acts as a middleware for the http routes

Functions

func DoConvert

func DoConvert(c *fiber.Ctx) (err error)

DoConvert POST handler

func Index

func Index(c *fiber.Ctx) error

Index GET handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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