From 4fd4c794c992fa2214d4ce0bff368a90ed47e949 Mon Sep 17 00:00:00 2001 From: lan-air Date: Fri, 9 Dec 2022 19:19:22 +0800 Subject: [PATCH] Delete No Use Page --- main.py | 6 --- templates/index.html | 2 +- templates/upload.html | 121 ------------------------------------------ 3 files changed, 1 insertion(+), 128 deletions(-) delete mode 100644 templates/upload.html 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 @@
By: Lan + href="https://github.com/vastsa/FileCodeBox">Lan
- - - - - - - - - 寄件箱-口令传送箱 - - - -
- - - - - -
将文件拖、粘贴到此处,或点击上传,24h后删除
-
- - 去取件 - - 文件箱 - -
-
-
-
-
- - - - - - - ${ file.name } - - - 取件码:

${ file.code }

-
-
-
-
-
-
- - - - - - - - \ No newline at end of file