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