CatPtain commited on
Commit
c2bc1ac
·
verified ·
1 Parent(s): 034d344

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -16,7 +16,26 @@ CORS(app, origins=["https://catptain-coze-api-01.hf.space"] + [
16
  "https://www.x-raremeta.com",
17
  "https://www.cybercity.top"
18
  ])
19
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  # 你的配置信息
21
  CLIENT_ID = "1243934778935"
22
  PRIVATE_KEY_FILE_PATH = "private_key.pem"
 
16
  "https://www.x-raremeta.com",
17
  "https://www.cybercity.top"
18
  ])
19
+ # Add this debug endpoint
20
+ @app.route('/debug', methods=['GET'])
21
+ def debug():
22
+ current_dir = os.getcwd()
23
+ file_dir = os.path.dirname(os.path.abspath(__file__))
24
+ expected_path = os.path.join(file_dir, "private_key.pem")
25
+
26
+ files_in_current = os.listdir(current_dir)
27
+ files_in_file_dir = os.listdir(file_dir) if os.path.exists(file_dir) else []
28
+
29
+ return jsonify({
30
+ "current_directory": current_dir,
31
+ "file_directory": file_dir,
32
+ "expected_path": expected_path,
33
+ "files_in_current_dir": files_in_current,
34
+ "files_in_file_dir": files_in_file_dir,
35
+ "__file__": __file__,
36
+ "exists_at_expected_path": os.path.exists(expected_path),
37
+ "exists_in_current_dir": os.path.exists("private_key.pem")
38
+ })
39
  # 你的配置信息
40
  CLIENT_ID = "1243934778935"
41
  PRIVATE_KEY_FILE_PATH = "private_key.pem"