old_contents: import os.path
  
  from flask import Blueprint, current_app
  
  from skylines.api.json import jsonify
  
  about_blueprint = Blueprint('about', 'skylines')
  
  
  @about_blueprint.route('/imprint')
  def imprint():
      content = current_app.config.get(
          'SKYLINES_IMPRINT',
          'Please set the `SKYLINES_IMPRINT` variable in the config file.')
  
      return jsonify(content=content)
  
  
  @about_blueprint.route('/team')
  def skylines_team():
      path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          '..', '..', '..', 'AUTHORS.md')
      with open(path) as f:
          content = f.read().decode('utf-8')
  
      return jsonify(content=content)
  
  
  @about_blueprint.route('/license')
  def license():
      path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          '..', '..', '..', 'LICENSE')
      with open(path) as f:
          content = f.read().decode('utf-8')
  
      return jsonify(content=content)
  
new_contents: import os.path
  
  from flask import Blueprint, current_app
  
  from skylines.api.json import jsonify
  
  about_blueprint = Blueprint('about', 'skylines')
  
  
  @about_blueprint.route('/imprint')
  def imprint():
      content = current_app.config.get(
          'SKYLINES_IMPRINT',
          'Please set the `SKYLINES_IMPRINT` variable in the config file.')
  
      return jsonify(content=content)
  
  
  @about_blueprint.route('/team')
  def skylines_team():
      path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          '..', '..', '..', 'AUTHORS.md')
      with open(path, 'rb') as f:
          content = f.read().decode('utf-8')
  
      return jsonify(content=content)
  
  
  @about_blueprint.route('/license')
  def license():
      path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
                          '..', '..', '..', 'LICENSE')
      with open(path, 'rb') as f:
          content = f.read().decode('utf-8')
  
      return jsonify(content=content)
  
subject: Read files in binary mode to decode UTF8 later