King / api /auth.py
Trkaga's picture
Create api/auth.py
e56ea7a verified
raw
history blame contribute delete
276 Bytes
from flask import request, jsonify
users = {}
def register():
data = request.json
email = data["email"]
password = data["password"]
users[email] = {
"password": password,
"credits": 5
}
return jsonify({"status": "ok", "credits": 5})