import os
import time
import glob
from datetime import datetime

from flask_cors import CORS
from flask import Flask, request, jsonify

import route
import mysql


app = Flask(__name__, instance_relative_config=True)
CORS(app)

app.config.from_object('config')

app.register_blueprint(route.bp)
mysql.init_app(app)


if __name__ == "__main__":
    #app.run("0.0.0.0", 5000, ssl_context=('cert.pem', 'key.pem'))
    app.run("0.0.0.0", 5000)
