Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update webhooks.py to fix sha1 typo #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add status for verifying app is functioning
kajigga committed Feb 27, 2019
commit 23b8b37526cffa4a04c37bd3bd7e17b4f0f3d87f
8 changes: 7 additions & 1 deletion webhooks.py
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@

import logging
from sys import stderr, hexversion
logging.basicConfig(stream=stderr)

import hmac
from hashlib import sha1
@@ -30,7 +29,9 @@
import requests
from ipaddress import ip_address, ip_network
from flask import Flask, request, abort
from flask import jsonify

logging.basicConfig(stream=stderr)

application = Flask(__name__)

@@ -202,5 +203,10 @@ def index():
return output


@application.route('/status', methods=['GET'])
def status():
return jsonify({'status': 'ok'})


if __name__ == '__main__':
application.run(debug=True, host='0.0.0.0')