routes

package
v0.0.0-...-419708b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(app *fiber.App, routeList []*Route)

Install registers a new route with a matcher for the URL path.

Types

type Route

type Route struct {
	Method       string
	Path         string
	Handler      fiber.Handler
	AuthRequired bool
}

Route provides the route instance for routing operation.

func NewAuthRoutes

func NewAuthRoutes(authHandlers handlers.AuthHandlers) []*Route

NewAuthRoutes provides the routing process for authentication.

func NewVulnRoutes

func NewVulnRoutes(vulnHandlers handlers.VulnHandlers) []*Route

NewVulnRoutes provides the routing process for vulnerability.

Jump to

Keyboard shortcuts

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