Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def post(self, connector):
json = request.get_json()
alarms = AlarmMapper.map_to_alarms(json)
webhook_url = config['Microsoft Teams'][connector]
send_alarms_to_teams(alarms, webhook_url, template_path)
return 'OK', 201