Delete No Use Page

This commit is contained in:
lan-air
2022-12-09 19:19:22 +08:00
parent 7003a50517
commit 4fd4c794c9
3 changed files with 1 additions and 128 deletions
-6
View File
@@ -79,12 +79,6 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)):
return {'code': 200, 'msg': '取件成功,请点击库查看', 'data': info}
@app.get('/share')
async def share():
with open('templates/upload.html', 'r') as f:
return HTMLResponse(f.read())
@app.post('/share')
async def share(text: str = Form(default=None), file: UploadFile = File(default=None), db: Session = Depends(get_db)):
cutoff_time = datetime.datetime.now() - datetime.timedelta(hours=exp_hour)