99i commited on
Commit
3e55f8d
·
verified ·
1 Parent(s): 934814f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -50,7 +50,7 @@ def clean_expired_images():
50
  os.remove(file_path)
51
 
52
  # 创建一个路由,用于触发清理过期的图片
53
- @app.delete("/ci")
54
  async def clean_images_endpoint():
55
  # 调用 clean_expired_images 函数来清理过期的图片
56
  clean_expired_images()
 
50
  os.remove(file_path)
51
 
52
  # 创建一个路由,用于触发清理过期的图片
53
+ @app.get("/ci")
54
  async def clean_images_endpoint():
55
  # 调用 clean_expired_images 函数来清理过期的图片
56
  clean_expired_images()