Mercurial > wikked
changeset 405:9ad06bf9ac04
web: Add support for `.well-known` folder.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 14 May 2016 18:17:52 -0700 |
parents | d7c7b1ed8dbc |
children | a65996b2e85d |
files | wikked/web.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/web.py Wed Jan 11 00:53:40 2017 -0800 +++ b/wikked/web.py Sat May 14 18:17:52 2016 -0700 @@ -71,6 +71,12 @@ cache=False) # Etag/caching seems broken +# Add a special route for the `.well-known` directory. +app.wsgi_app = SharedDataMiddleware( + app.wsgi_app, + {'/.well-known': os.path.join(wiki_root, '.well-known')}) + + # Profiling if app.config['PROFILE']: profile_dir = app.config['PROFILE_DIR']