hamza82 commited on
Commit
9aef558
·
verified ·
1 Parent(s): af3b09e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, jsonify
2
+
3
+ app = Flask(__name__)
4
+
5
+ @app.route('/api')
6
+ def hello_world():
7
+ return jsonify(message="Hello from the backend!")
8
+
9
+ if __name__ == '__main__':
10
+ app.run(debug=True, host='0.0.0.0')