]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/__init__.py
gasthaus_list is rendered now.
[philipp/winterrodeln/wradmin.git] / wradmin / __init__.py
index 225b39397946ebc7ac12ccc00d2f607797c13b45..ea3b097d5e996a03eb194631cf90361f170902e0 100644 (file)
@@ -6,6 +6,7 @@ from sqlalchemy.engine import create_engine
 import wradmin.model
 from wradmin.genshi import render_genshi_template
 from wradmin.controllers.rodelbahn import RodelbahnController
+from wradmin.controllers.gasthaus import GasthausController
 
 
 app = Flask(__name__)
@@ -63,7 +64,20 @@ def bericht_list():
 
 @app.route("/gasthaus/list")
 def gasthaus_list():
-    pass
+    get_db()
+    return GasthausController().list()
+
+
+@app.route("/gasthaus/view/<int:id>")
+def gasthaus_view():
+    get_db()
+    return GasthausController().view(id)
+
+
+@app.route("/gasthaus/update")
+def gasthaus_update():
+    get_db()
+    return GasthausController().update()
 
 
 @app.route("/coordtool/index")