commit e06afbc35e1a197f0f977f12ba4fa09f163dee67
parent bec60c34533bd95b34abd32510c817c0cb5fb8ac
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Thu, 9 May 2013 00:20:00 +0200
fix routes
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plint_web.py b/plint_web.py
@@ -52,15 +52,15 @@ def server_static(filename):
return static_file(filename, root="./static/tpl", mimetype="text/plain")
@app.route('/<lang>/static/tpl/<filename>')
-def server_static(filename):
+def server_static(filename, lang=None):
return static_file(filename, root="./static/tpl", mimetype="text/plain")
-@app.route('/<lang>/static/<filename>')
+@app.route('/static/<filename>')
def server_static(filename):
return static_file(filename, root="./static")
-@app.route('/static/<filename>')
-def server_static(filename):
+@app.route('/<lang>/static/<filename>')
+def server_static(filename, lang=None):
return static_file(filename, root="./static")
@app.route('/')