X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fweb%2F__init__.py;h=91a8cdc23f10848edf549f99fd8b3c825de80479;hb=4a1bfdd53073898cb92d836493c58b62136b0c26;hp=5e95bc933155f67124820742ce67a8c868cd997f;hpb=cf59466c4e7eb85ec67a8609bb955fd6a85c451d;p=ipfire.org.git diff --git a/src/web/__init__.py b/src/web/__init__.py index 5e95bc93..91a8cdc2 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -139,6 +139,7 @@ class Application(tornado.web.Application): (r"/blog/([0-9a-z\-\._]+)/publish", blog.PublishHandler), # Docs + (r"/docs((?:[A-Za-z0-9\-_\/]+)?(?:.*)\.(?:\w+))$", docs.FileHandler), (r"/docs([A-Za-z0-9\-_\/]+)?", docs.PageHandler), # Downloads @@ -353,7 +354,6 @@ class Application(tornado.web.Application): # Media (r"([A-Za-z0-9\-_\/]+)?/_files", wiki.FilesHandler), - (r"((?!/static)(?:[A-Za-z0-9\-_\/]+)?(?:.*)\.(?:\w+))$", wiki.FileHandler), # Serve any static files (r"/static/(.*)", tornado.web.StaticFileHandler, { "path" : self.settings.get("static_path") }),