AuthMiddleware handles authentication and authorization for API routes. It supports both master key and API key authentication using the X-LedgerForge-Key header.
| 52 | // AuthMiddleware handles authentication and authorization for API routes. |
| 53 | // It supports both master key and API key authentication using the X-LedgerForge-Key header. |
| 54 | type AuthMiddleware struct { |
| 55 | service *ledgerforge.LedgerForge |
| 56 | } |
| 57 | |
| 58 | // NewAuthMiddleware creates a new instance of AuthMiddleware. |
| 59 | // |
nothing calls this directly
no outgoing calls
no test coverage detected