Create tables

This commit is contained in:
Administrator 2022-03-13 21:00:14 +01:00
parent 5a6aab4b9c
commit fd7f3d38e2

View File

@ -2,7 +2,8 @@ from flask import Flask, jsonify
from dotenv import load_dotenv
from db import db
from models import User
from models import *
def create_app():
load_dotenv()
@ -15,6 +16,9 @@ def create_app():
db.init_app(application)
# Create all tables
db.create_all()
@application.route('/')
def hello_world():
return 'Hello World!'