CostaCoffe/core/staticdir.py

8 lines
238 B
Python
Raw Normal View History

2024-07-31 10:33:24 +07:00
from bottle import Bottle, static_file
2024-05-12 02:18:32 +07:00
from config import directory
app = Bottle()
2024-07-31 10:33:24 +07:00
for item in directory.static:
app.route(item['route'], "GET", lambda filepath, root=item['root']: static_file(filepath, root=root) )