authsquare/app/config/directory.py
2024-06-17 17:33:29 +07:00

25 lines
595 B
Python

from bottle import Bottle, get, static_file
page = {
'public' :'pages/public',
'email' :'pages/email'
}
app = Bottle()
# Default staticdir
@app.get("/css/<filepath:re:.*\.(css|sass|css.map)>")
def static(filepath):
return static_file(filepath, root="./static/css")
@app.get("/js/<filepath:re:.*\.(js)>")
def static(filepath):
return static_file(filepath, root="./static/js")
# Template staticdir: plain
@app.get("/templates/plain/css/<filepath:re:.*\.(css|sass|css.map)>")
def static(filepath):
return static_file(filepath, root="./templates/plain/static/css")