-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp1.py
More file actions
39 lines (31 loc) · 733 Bytes
/
Copy pathapp1.py
File metadata and controls
39 lines (31 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# import packages
from flask import Flask
# create app
app = Flask(__name__)
# develop api
@app.route("/")
def hello():
return "I am happy to say hello"
# develop api
@app.route("/mukund")
def greet():
return "ok"
# develop api
@app.route("/ishita")
def welcome():
return "I am happy to say hello"
# develop api
@app.route('/hari')
def namaskar():
return 'Welcome Hari ji, what is your order'
# develop api
@app.route('/ritika')
def namaste():
return 'Welcome Hari ji, what is your order'
#develop api
@app.route('/<name>')
def good_morning(name):
return 'Welcome ' + name +', you are new, what is your order'
# run app
if __name__ == "__main__":
app.run(host="127.0.0.1", port=8080, debug=False)