From b68cd17b91c9bc0b55d33b52b70cad10025c2d2e Mon Sep 17 00:00:00 2001 From: JustMaffie Date: Sat, 27 May 2017 22:37:18 +0200 Subject: [PATCH] add base update unauthenticated user add base update unauthenticated user --- webapp/titanembeds/blueprints/api/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/titanembeds/blueprints/api/api.py b/webapp/titanembeds/blueprints/api/api.py index bc35f24..9269b67 100644 --- a/webapp/titanembeds/blueprints/api/api.py +++ b/webapp/titanembeds/blueprints/api/api.py @@ -373,6 +373,11 @@ def create_unauthenticated_user(): response = jsonify(status=status) response.status_code = 403 return response + +@api.route("/update_unauthenticated_user", methods=["POST"]) +@rate_limiter.limit("1 per 15 minute", key_func=guild_ratelimit_key) +def update_unauthenticated_user(): + # todo: update user @api.route("/query_guild", methods=["GET"]) @valid_session_required(api=True)