Update main.py
Browse files
main.py
CHANGED
|
@@ -50,7 +50,7 @@ def clean_expired_images():
|
|
| 50 |
os.remove(file_path)
|
| 51 |
|
| 52 |
# 创建一个路由,用于触发清理过期的图片
|
| 53 |
-
@app.
|
| 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()
|