text: from os import environ
  from flask import Flask, session
  from application import api, config
  
  def create_app():
      
      app = Flask(__name__, static_url_path='', static_folder='static/')
      config_obj = None
      if environ.get('FLASK_ENV') == 'development':
          config_obj = config.DevelopmentConfig()
          print("Loaded development config")
      else:
          config_obj = config.ProductionConfig()
          print("Loaded production config")
  
      app.config.from_object(config_obj)
      app.register_blueprint(api.bp, url_prefix=config_obj.API_URL_PREFIX)
      
  
      return app
  