From: John Runyon Date: Sat, 25 May 2024 03:42:18 +0000 (-0600) Subject: hello world 2.0 X-Git-Url: https://jfr.im/git/dlqueue.git/commitdiff_plain/fdcb0b1ae93cf4c9de97f1edf2c6cea2a5c6c53c hello world 2.0 --- diff --git a/app.py b/app.py index c893078..a5a57bc 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,10 @@ from flask import Flask, render_template - app = Flask(__name__) @app.route("/") def index(): return render_template('index.html') + +@app.route('/api/new-job') +def new_job(): + return {'foo':1,'bar':2,'quux':[1,2,3]}