Last active
June 15, 2020 10:32
-
-
Save raghavmri/d5197334080b06251d2a61ea635ae2b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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