Skip to content

Instantly share code, notes, and snippets.

@raghavmri
Last active June 15, 2020 10:32
Show Gist options
  • Save raghavmri/d5197334080b06251d2a61ea635ae2b7 to your computer and use it in GitHub Desktop.
Save raghavmri/d5197334080b06251d2a61ea635ae2b7 to your computer and use it in GitHub Desktop.
# importing...
from flask import Flask, render_template, Response ,request, url_for, redirect, send_from_directory, Markup, session, flash, jsonify
import json
# app confog(typo)
app = Flask(__name__)
# a simple route
@app.route("/")
def hello_wordl():
data= {
'name': 'name'
}
return json.dumps(data)
# running the app
if __name__ == '__main__':
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment