from flask import Flask, request
from flask_pymongo import pymongo
from flask_cors import CORS
import os

MONGO_URL = os.environ.get('DB_URL')

app = Flask(__name__)
CORS(app)
app.secret_key = os.environ.get('APP_SECRET')
client = pymongo.MongoClient(MONGO_URL)
db = client.speech_connect

from Users import routes as r0
from Users.model import checkJWT
from Events import routes as r1
from Topics import routes as r2

@app.route("/")
@checkJWT
def hello(userId):
	return "Hello World!"



