addded example models

This commit is contained in:
2019-03-12 09:17:55 +01:00
parent 38ab1578b0
commit 3c4e3719d7
6 changed files with 377 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
import os
"""
Backend base module
"""
from flask import Flask
from flask_httpauth import HTTPTokenAuth, HTTPBasicAuth
from flask_sqlalchemy import SQLAlchemy
@@ -7,7 +10,7 @@ from flask_sqlalchemy import SQLAlchemy
from .serve_frontend import fe_bp
from .api import api_bp
jwt_auth = HTTPTokenAuth('Bearer')
jwt_auth = HTTPTokenAuth()
basic_auth = HTTPBasicAuth()
app = Flask(__name__)