<gh_stars>1-10
from flask import Flask
from flask_pymongo import PyMongo
from decouple import config

app = Flask(__name__)

if app.config["ENV"] == "production":
    app.config.from_object('configurations.ProductionConfig')
else:
    app.config.from_object('configurations.DevelopmentConfig')


mongo = PyMongo(app)

from api import routes
