Skip to content

Commit cea831f

Browse files
author
lan-air
committed
update index return
1 parent 6fcd501 commit cea831f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def get_file_name(key, ext, file):
5858

5959
@app.get('/')
6060
async def index():
61-
with open('templates/index.html', 'r') as f:
62-
return HTMLResponse(index_html)
61+
return HTMLResponse(index_html)
6362

6463

6564
@app.post('/')

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- [x] Sqlite3数据库:无需安装数据库
1313

1414
## 系统截图
15+
1516
![取件](https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/%E5%8F%96%E4%BB%B6.png)
1617
![取件箱](https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/%E5%8F%96%E4%BB%B6%E7%AE%B1.png)
1718
![寄件](https://raw.githubusercontent.com/vastsa/FileCodeBox/master/images/%E5%AF%84%E4%BB%B6.png)
@@ -38,3 +39,8 @@
3839
docker build --file Dockerfile --tag filecodebox .
3940
docker run -d -p 12345:12345 --name filecodebox filecodebox
4041
```
42+
43+
## 免责声明
44+
45+
本项目开源仅供学习使用,不得用于商业用途以及任何违法用途,否则后果自负,与本人无关。
46+

0 commit comments

Comments
 (0)