path matcher can work with regex
This commit is contained in:
@@ -8,7 +8,7 @@ def dev(self):
|
||||
return os.getenv("TORNADO_ENV", "dev") == "dev"
|
||||
|
||||
def matchesPath(self, href):
|
||||
return self.request.uri.startswith(href)
|
||||
return re.match('^'+href, self.request.uri)
|
||||
|
||||
def modal(self, body):
|
||||
return self.render_string(
|
||||
|
Reference in New Issue
Block a user