Mercurial > odfcast
diff main.py @ 23:709edf15f90e
Add a index view to display links to the three functions
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 29 Sep 2014 16:07:49 +0200 |
parents | c289263e1b24 |
children | 9d65de2ebe22 |
line wrap: on
line diff
--- a/main.py Mon Sep 29 16:07:25 2014 +0200 +++ b/main.py Mon Sep 29 16:07:49 2014 +0200 @@ -10,7 +10,8 @@ if app.config["DEBUG"]: logging.basicConfig(level=logging.DEBUG) -from odfcast.convert import ConvertView, TemplateConvertView, MergeView +from odfcast.convert import ConvertView, TemplateConvertView, MergeView, \ + TemplateView app.add_url_rule("/convert/", @@ -30,6 +31,10 @@ app.add_url_rule("/merge/", view_func=MergeView.as_view("merge"), ) +app.add_url_rule("/", + view_func=TemplateView.as_view("index", "index.html"), + ) + if __name__ == "__main__": app.run()