Skip to content

Commit 4fd4c79

Browse files
author
lan-air
committed
Delete No Use Page
1 parent 7003a50 commit 4fd4c79

File tree

3 files changed

+1
-128
lines changed

3 files changed

+1
-128
lines changed

main.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)):
7979
return {'code': 200, 'msg': '取件成功,请点击库查看', 'data': info}
8080

8181

82-
@app.get('/share')
83-
async def share():
84-
with open('templates/upload.html', 'r') as f:
85-
return HTMLResponse(f.read())
86-
87-
8882
@app.post('/share')
8983
async def share(text: str = Form(default=None), file: UploadFile = File(default=None), db: Session = Depends(get_db)):
9084
cutoff_time = datetime.datetime.now() - datetime.timedelta(hours=exp_hour)

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
</el-row>
9595
<div style="text-align: center; margin-top: 1rem;color: #606266">
9696
<span> By: <a style="text-decoration: none;color: #606266" target="_blank"
97-
href="https://github.com/vastsa/FileShare">Lan</a></span>
97+
href="https://github.com/vastsa/FileCodeBox">Lan</a></span>
9898
</div>
9999
<el-drawer
100100
title="文件库"

templates/upload.html

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)