diff --git a/main.py b/main.py index 94f98ca..cf7ea3a 100644 --- a/main.py +++ b/main.py @@ -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) diff --git a/templates/index.html b/templates/index.html index d2af90c..40bdd38 100644 --- a/templates/index.html +++ b/templates/index.html @@ -94,7 +94,7 @@