Middleware to secure access to POST and DEL actions using an API Key
Log depending on env