from flask import Blueprint
from ..models.user import User
from ..extensions import db
user = Blueprint('user', __name__)

@user.route('/user/<name>')
def create_user(name):
    user = User(name=name)
    db.session.add(user)
    db.session.commit()
    return 'User created!!!'