path matcher can work with regex
This commit is contained in:
parent
862f1f7b18
commit
72b67d3a55
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user