update:优化web端目录结构

This commit is contained in:
hrz
2025-02-15 12:30:20 +08:00
parent e6381c6176
commit 2379cdc3ba
8 changed files with 204 additions and 122 deletions
+10
View File
@@ -0,0 +1,10 @@
async def verify_token(config, request):
if 'token' not in config['manager']:
return True
expected_token = config['manager']['token']
token = request.headers.get('Authorization', '').replace('Bearer ', '')
if not token or token != expected_token:
return False
return True