2015-12-24 00:54:47 +00:00
|
|
|
from flask import Blueprint, session
|
2015-12-23 23:23:18 +00:00
|
|
|
from utils import api_wrapper
|
|
|
|
|
|
|
|
blueprint = Blueprint("user", __name__)
|
|
|
|
|
|
|
|
@blueprint.route("/register", methods=["POST"])
|
|
|
|
@api_wrapper
|
|
|
|
def user_register():
|
2015-12-24 00:54:47 +00:00
|
|
|
return { "success": 0, "message": "Registration is not open yet." }
|
|
|
|
|
|
|
|
@blueprint.route("/logout", methods=["POST"])
|
|
|
|
@api_wrapper
|
|
|
|
def user_logout():
|
|
|
|
# session.clear()
|
|
|
|
pass
|
|
|
|
|
|
|
|
@blueprint.route("/login", methods=["POST"])
|
|
|
|
@api_wrapper
|
|
|
|
def user_login():
|
2015-12-24 01:12:23 +00:00
|
|
|
pass
|