Skip to content

Instantly share code, notes, and snippets.

@anandtripathi5
Created May 22, 2021 11:39
Show Gist options
  • Save anandtripathi5/e20228bd12bb9e2ec2b2170a2332dcfd to your computer and use it in GitHub Desktop.
Save anandtripathi5/e20228bd12bb9e2ec2b2170a2332dcfd to your computer and use it in GitHub Desktop.
This is the minimal example of server in Flask 1.0
from flask import Flask
app = Flask('__name__')
@app.route('/hello', methods=['GET', 'POST'])
def hello_world():
return 'This is the hello world api request'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment