handlers

package
v0.0.0-...-9cb6dba Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AUTH_KEY string = "authenticated"
	USER_ID  string = "user_id"
)

Functions

func AuthMiddleware

func AuthMiddleware(c *fiber.Ctx) error

Authentication Middleware

func HandleDeleteTodo

func HandleDeleteTodo(c *fiber.Ctx) error

Handler Remove Todo

func HandleLogout

func HandleLogout(c *fiber.Ctx) error

Logout Handler

func HandleViewCreatePage

func HandleViewCreatePage(c *fiber.Ctx) error

Render Create Todo Page with success/error messages

func HandleViewEditPage

func HandleViewEditPage(c *fiber.Ctx) error

Render Edit Todo Page with success/error messages

func HandleViewHome

func HandleViewHome(c *fiber.Ctx) error

Render Home Page

func HandleViewList

func HandleViewList(c *fiber.Ctx) error

Render List Page with success/error messages

func HandleViewLogin

func HandleViewLogin(c *fiber.Ctx) error

Render Login Page with success/error messages & session management

func HandleViewRegister

func HandleViewRegister(c *fiber.Ctx) error

Render Register Page with success/error messages

func Setup

func Setup(app *fiber.App)

Types

This section is empty.

Jump to

Keyboard shortcuts

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