old_contents: # -*- coding: utf-8 -*-
  """User views."""
  from flask import Blueprint, render_template, request, flash, redirect
  from flask_login import login_required, current_user
  
  from ceraon.locations.forms import LocationForm
  from ceraon.models.locations import Location
  from ceraon.utils import flash_errors
  
  blueprint = Blueprint('user', __name__, url_prefix='/users',
                        static_folder='../static')
  
  
  @blueprint.route('/', methods=['GET', 'POST'])
  @login_required
  def members():
      """List members."""
      form = LocationForm(request.form)
      if form.validate_on_submit():
          Location.create(host=current_user, name=form.name.data)
          flash('You created your location!', 'success')
          return redirect(url_for('user.members'))
      else:
          flash_errors(form)
      return render_template('users/members.html', form=form)
  
new_contents: # -*- coding: utf-8 -*-
  """User views."""
  from flask import Blueprint, render_template, request, flash, redirect
  from flask_login import login_required, current_user
  
  from ceraon.locations.forms import LocationForm
  from ceraon.models.locations import Location
  from ceraon.utils import flash_errors
  
  blueprint = Blueprint('user', __name__, url_prefix='/users',
                        static_folder='../static')
  
  
  @blueprint.route('/', methods=['GET', 'POST'])
  @login_required
  def members():
      """List members."""
      form = LocationForm(request.form)
      if form.validate_on_submit():
          Location.create(host=current_user, name=form.name.data)
          flash('You created your location!', 'success')
          return redirect(url_for('user.members'))
      else:
          flash_errors(form)
      return render_template('users/members.html', form=form)
  
  @blueprint.route('/me', methods=['GET'])
  @login_required
  def me():
      return render_template('users/me.html')
subject: Add user.me endpoint