add:上传页面新增banner

This commit is contained in:
lan
2022-12-19 15:21:24 +08:00
parent 88b4d47da7
commit a907a8bfa7
5 changed files with 27 additions and 2 deletions
+8
View File
@@ -81,6 +81,14 @@ async def index():
return HTMLResponse(index_html)
@app.get('/banner')
async def banner():
return {
'detail': 'banner',
'data': settings.UPLOAD_BANNERS.split(',')
}
@app.get('/select')
async def get_file(code: str, ip: str = Depends(error_ip_limit), s: AsyncSession = Depends(get_session)):
# 查出数据库记录