summaryrefslogtreecommitdiff
path: root/app.py
blob: 996be9bec34568559e7c06d007cfc294e6ccbd8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from flask import Flask
from os import getenv
from db_actions import db

app = Flask(__name__, static_url_path='')
app.secret_key = getenv("SECRET_KEY")
app.config["SQLALCHEMY_DATABASE_URI"] = getenv("SQLALCHEMY_DATABASE_URI")
db.init_app(app)

import routes.base
import routes.set.nick
import routes.set.quiz
import routes.set.question
import routes.get.quiz