File size: 650 Bytes
df42f36
 
 
 
 
 
 
 
 
c90fe2b
df42f36
 
 
 
11133ef
df42f36
 
 
c90fe2b
df42f36
 
4978d94
c90fe2b
 
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
from flask import Blueprint
from flask import flash
from flask import g
from flask import redirect
from flask import render_template
from flask import request
from flask import url_for
from werkzeug.exceptions import abort
from flask import session
from threading import Thread

from .auth import login_required
from .db import get_db

bp = Blueprint("introduction", __name__, url_prefix="/introduction")


@bp.route("/", methods=["GET", "POST"])
def introduction() -> None:
    match request.method:
        case "GET":
            return render_template("introduction.html")
        case "POST":
            return redirect(url_for("topic.topic"))