From 44488c86de1aee443e36e09d50b0ac6e989e0f2b Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Mon, 31 May 2021 15:56:46 -0500 Subject: [PATCH] Change account endpoint to use POST --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index f1e435d..4d0d43c 100644 --- a/app.py +++ b/app.py @@ -14,8 +14,8 @@ app = Flask(__name__) musicbrainzngs.set_useragent("Zune", "4.8", "https://github.com/yoshiask/PyZuneCommerceServer") -@app.route(f"/v2//account/signin") -def music_get_album(locale: str): +@app.route(f"/v2//account/signin", methods=['POST']) +def account_signin(locale: str): print(request.data) signinReq: Document = xml.parseString(request.data.decode('utf-8')) tunerInfo: Element = signinReq.firstChild