soiz commited on
Commit
10dd0f8
·
verified ·
1 Parent(s): 1585152

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -45,6 +45,14 @@ def index():
45
  def static_files(filename):
46
  return send_from_directory('static', filename)
47
 
 
 
 
 
 
 
 
 
48
  if __name__ == '__main__':
49
  # port 7860でFlaskアプリを起動
50
  app.run(host='0.0.0.0', port=7860)
 
45
  def static_files(filename):
46
  return send_from_directory('static', filename)
47
 
48
+ # main.jsの存在を確認するエンドポイント
49
+ @app.route('/check_main_js')
50
+ def check_main_js():
51
+ if os.path.exists('static/main.js'):
52
+ return "main.js exists."
53
+ else:
54
+ return "main.js does not exist."
55
+
56
  if __name__ == '__main__':
57
  # port 7860でFlaskアプリを起動
58
  app.run(host='0.0.0.0', port=7860)