summaryrefslogtreecommitdiff
path: root/routes.py
blob: 09ba156176954a9f837bb136f91a2786f4662aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from app import app
from flask import render_template,session

@app.route("/")
def index():
    return app.send_static_file("index.html")

@app.route("/pages/info.html")
def info():
    return render_template("info.html")

@app.route("/pages/create.html")
def create():
    if "nick" not in session:
        return render_template("nick.html")
    return render_template("create.html")

@app.route("/pages/answer.html")
def answer():
    if "nick" not in session:
        return render_template("nick.html")
    return render_template("answer.html")

@app.route("/pages/analyse.html")
def analyse():
    return render_template("analyse.html")

@app.route("/pages/moderate.html")
def moderate():
    return render_template("moderate.html")