MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / NewAuthMiddleware

Function NewAuthMiddleware

api/middleware/auth.go:65–67  ·  view source on GitHub ↗

NewAuthMiddleware creates a new instance of AuthMiddleware. Parameters: - ledgerforge: The LedgerForge service used to validate API keys. Returns: - *AuthMiddleware: A new instance of the authentication middleware.

(ledgerforge *ledgerforge.LedgerForge)

Source from the content-addressed store, hash-verified

63// Returns:
64// - *AuthMiddleware: A new instance of the authentication middleware.
65func NewAuthMiddleware(ledgerforge *ledgerforge.LedgerForge) *AuthMiddleware {
66 return &AuthMiddleware{service: ledgerforge}
67}
68
69// getResourceFromPath determines the resource type from the URL path.
70//

Callers 2

NewAPIFunction · 0.92

Calls

no outgoing calls

Tested by 1