fix static files

This commit is contained in:
GM 2023-02-10 22:11:02 +00:00
parent 42a85025a3
commit 41e694d87b

View File

@ -39,10 +39,11 @@ static_files={
# '/robots.txt': {'content_type': 'text/html', 'filename': 'robots.txt'}, # '/robots.txt': {'content_type': 'text/html', 'filename': 'robots.txt'},
'/favicon.ico': {'filename': 'favicon.ico'}, '/favicon.ico': {'filename': 'favicon.ico'},
'/img/icons': './img/icons', '/img/icons': './img/icons',
'/manifest.json': {'filename': 'manifest.json'}, '/manifest.webmanifest': {'filename': 'manifest.webmanifest'},
'/css': './css', '/assets':'./assets',
'/media': './media', #'/css': './css',
'/js': './js', #'/media': './media',
#'/js': './js',
} }
if "UseRobots" in os.environ and os.environ['UseRobots'].upper() == "TRUE": if "UseRobots" in os.environ and os.environ['UseRobots'].upper() == "TRUE":
static_files['/robots.txt'] = {'content_type': 'text/html', 'filename': 'robots.txt'} static_files['/robots.txt'] = {'content_type': 'text/html', 'filename': 'robots.txt'}