rogerxavier commited on
Commit
33cdb47
1 Parent(s): f507874

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +6 -0
api.py CHANGED
@@ -250,3 +250,9 @@ async def upload_again(bili_meta_data):
250
 
251
 
252
 
 
 
 
 
 
 
 
250
 
251
 
252
 
253
+
254
+ @app.get("/cover.jpg")
255
+ def get_cover_image():
256
+ cover_dir = "cover"
257
+ file_path = os.path.join(cover_dir, "0.jpg")
258
+ return FileResponse(file_path)