Skip to content
vouch.py 370 B
Newer Older
nimrod's avatar
nimrod committed
from utils import check_urls


def handler(event, context):  # pylint: disable=unused-argument
    """Lambda event handler."""
    checks = [
        {"url": "http://vouch.shore.co.il/", "codes": [301, 302]},
        {"url": "https://vouch.shore.co.il/validate", "codes": [401]},
    ]
    check_urls(checks)


if __name__ == "__main__":
    handler("event", "context")