Skip to content

Commit

Permalink
add example endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Oct 5, 2020
1 parent 824b12c commit 8c867e5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions example_endpoint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import time

import flask

app = flask.Flask(__name__)


@app.route("/<path>", methods=['POST'])
def handle_job(path):
print("job received at path:", path, "body:", flask.request.data.decode())
time.sleep(5)
return ""


app.run(use_reloader=True)

0 comments on commit 8c867e5

Please sign in to comment.