diff --git a/litecord/blueprints/admin_api/users.py b/litecord/blueprints/admin_api/users.py index b1bbe98..e0d1b74 100644 --- a/litecord/blueprints/admin_api/users.py +++ b/litecord/blueprints/admin_api/users.py @@ -35,14 +35,11 @@ from litecord.common.users import ( bp = Blueprint("users_admin", __name__) -@bp.route("", methods=["POST"]) +@bp.route("", methods=["POST", "PUT"]) async def _create_user(): await admin_check() - j = validate(await request.get_json(), USER_CREATE) - user_id, _ = await create_user(j["username"], j["email"], j["password"]) - return jsonify(await app.storage.get_user(user_id))