router

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOwnBranchMiddleware added in v0.6.0

func IsOwnBranchMiddleware() gin.HandlerFunc

IsOwnBranchMiddleware ensures that the user is associated with the branch being accessed. It checks if the user's branch ID matches the branch ID provided in the request context.

func RoleMiddleware added in v0.3.0

func RoleMiddleware(requiredRole string) gin.HandlerFunc

RoleMiddleware ensures that the user has the specified role before allowing access.

func Routes

func Routes() *gin.Engine

Routes sets up the routes for the gateway.

Types

This section is empty.

Jump to

Keyboard shortcuts

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