From 50dded4959fe1108fd4a072ea5b7e2f4d5c2ea3f Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 7 Mar 2014 14:05:18 -0300 Subject: [PATCH] started the user management --- luncho/blueprints/users.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 luncho/blueprints/users.py diff --git a/luncho/blueprints/users.py b/luncho/blueprints/users.py new file mode 100644 index 0000000..95cdeb4 --- /dev/null +++ b/luncho/blueprints/users.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +"""User management.""" + +from flask import Blueprint +from flask import request +# from flask import jsonify +# from flask import current_app + +users = Blueprint('users', __name__) + + +@users.route('', methods=['PUT']) +def create_user(): + """Create a new user. Request must be: + { "username": "username", "full_name": "Full Name", "password": "hash" }""" + \ No newline at end of file