old_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import pathlib
  
  from flask import Flask
  from flask_admin import Admin
  from flask_bcrypt import Bcrypt
  from flask_login import LoginManager
  from flask_sqlalchemy import SQLAlchemy
  
  
  app = Flask(__name__)
  
  app.config.from_object('backend.config')
  
  base_dir = pathlib.Path(__file__).resolve().parent.parent
  app.static_folder = str(base_dir / 'static')
  app.static_url_path = ''
  
  admin = Admin(app, name='golf-stats', template_mode='bootstrap3')
  bcrypt = Bcrypt(app)
  db = SQLAlchemy(app)
  
  login_manager = LoginManager()
  login_manager.init_app(app)
  login_manager.login_view = 'login'
  
  
  from . import models, views, api
  
new_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import pathlib
  
  from flask import Flask
  from flask_admin import Admin
  from flask_bcrypt import Bcrypt
  from flask_cors import CORS
  from flask_login import LoginManager
  from flask_sqlalchemy import SQLAlchemy
  
  
  app = Flask(__name__)
  app.config.from_object('backend.config')
  
  base_dir = pathlib.Path(__file__).resolve().parent.parent
  app.static_folder = str(base_dir / 'static')
  app.static_url_path = ''
  
  admin = Admin(app, name='golf-stats', template_mode='bootstrap3')
  bcrypt = Bcrypt(app)
  db = SQLAlchemy(app)
  
  login_manager = LoginManager()
  login_manager.init_app(app)
  login_manager.login_view = 'login'
  
  CORS(app)
  
  
  from . import models, views, api
  
subject: add cors