url to download book with ok name

This commit is contained in:
j 2014-12-13 21:01:54 +01:00
commit 23aaf37740
2 changed files with 11 additions and 1 deletions

View file

@ -65,6 +65,9 @@ def run():
(r'/(.*?)/reader/', ReaderHandler),
(r'/(.*?)/pdf/', FileHandler),
(r'/(.*?)/txt/', FileHandler),
(r'/(.*?)/get/', FileHandler, {
'download': True
}),
(r'/(.*)/(cover|preview)(\d*).jpg', IconHandler),
(r'/api/', oxtornado.ApiHandler, dict(context=db.session)),
(r'/ws', websocket.Handler),