Nishant Kumar commited on
Commit
7eb71d9
·
verified ·
1 Parent(s): 9b68079

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, jsonify, request
2
+
3
+ app = Flask(__name__)
4
+
5
+ # Sample endpoint
6
+ @app.route('/')
7
+ def hello():
8
+ return jsonify({'message': 'Hello, World!'})
9
+
10
+
11
+ if __name__ == '__main__':
12
+ app.run(debug=True) # Run the Flask app in debug mode if executed directly