yusufgundogdu commited on
Commit
e173571
·
verified ·
1 Parent(s): 91d8bb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -4,11 +4,15 @@ app = Flask(__name__)
4
 
5
  @app.route('/')
6
  def home():
7
- return jsonify({"status": "running", "message": "Merhaba Dünya!"})
8
 
9
- @app.route('/api/test', methods=['GET'])
10
- def test():
11
- return jsonify({"data": [1, 2, 3]})
 
 
 
 
12
 
13
  if __name__ == '__main__':
14
  app.run(host='0.0.0.0', port=8080)
 
4
 
5
  @app.route('/')
6
  def home():
7
+ return jsonify({"status": "success", "message": "API çalışıyor!"})
8
 
9
+ @app.route('/health')
10
+ def health():
11
+ return jsonify({"status": "healthy"})
12
+
13
+ @app.route('/api/v1/data')
14
+ def data():
15
+ return jsonify({"data": [1, 2, 3], "source": "Hugging Face Space"})
16
 
17
  if __name__ == '__main__':
18
  app.run(host='0.0.0.0', port=8080)