diff options
| author | 2018-04-03 16:52:23 +0100 | |
|---|---|---|
| committer | 2018-04-03 16:52:23 +0100 | |
| commit | 4c639ebb06c8ef931589aca98185777b0b3e1175 (patch) | |
| tree | a74b053a4c73f595cb4907e2dd516b5ff58372fc /pysite/views/wiki/index.py | |
| parent | Fix staff route name (diff) | |
Basic wiki routes
Diffstat (limited to '')
| -rw-r--r-- | pysite/views/wiki/index.py | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/pysite/views/wiki/index.py b/pysite/views/wiki/index.py new file mode 100644 index 00000000..778a808c --- /dev/null +++ b/pysite/views/wiki/index.py @@ -0,0 +1,13 @@ +# coding=utf-8 +from flask import url_for +from werkzeug.utils import redirect + +from pysite.base_route import RouteView + + +class WikiView(RouteView): +    path = "/" +    name = "index" + +    def get(self): +        return redirect(url_for("wiki.page", page="home")) | 
