]> git.xn--bdkaa.com Git - where-are-you.py.git/commitdiff
Fix routing
authorzharkovstas <zharkovstas@skbkontur.ru>
Sun, 19 May 2019 06:32:10 +0000 (11:32 +0500)
committerzharkovstas <zharkovstas@skbkontur.ru>
Sun, 19 May 2019 06:32:22 +0000 (11:32 +0500)
app.py

diff --git a/app.py b/app.py
index a6dad3f8e566c13dfcad44290cb77c85dfa63daa..d2cf0a5817996202aceaf4a0e6c5f7a88a583f38 100644 (file)
--- a/app.py
+++ b/app.py
@@ -376,13 +376,11 @@ def static_js(staticFile):
 def static_media(staticFile):
     return static_file(staticFile, "build/static/media")
 
-
-@get('/<whatever>')
+@get('/<whatever:path>')
 @enable_cors
 def index(whatever):
     return static_file('index.html', "build")
 
-
 application = bottle.default_app()
 from paste import httpserver