From 83bb94c85a85e42b658bb3e9cc21def2b08c5aff Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 22 Jan 2023 19:20:09 +0100 Subject: remove explicit methods Signed-off-by: Olivier Gayot --- app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index d525532..4805101 100644 --- a/app.py +++ b/app.py @@ -15,19 +15,19 @@ tmpdir = tempfile.TemporaryDirectory() launchpad = Launchpad.login_anonymously("just testing", "production", tmpdir.name, version="devel") -@app.route("/", methods=["GET"]) +@app.route("/") def index_root(): return redirect("/ogayot", code=302) -@app.route("/", methods=["GET"]) +@app.route("/") def index_lpuser(LPUSER): lpuser = launchpad.people[LPUSER] return jsonify([ppa.name for ppa in lpuser.ppas]) -@app.route("//", methods=["GET"]) +@app.route("//") def index_ppa(LPUSER, PPA): lpuser = launchpad.people[LPUSER] @@ -49,7 +49,7 @@ def index_ppa(LPUSER, PPA): return jsonify(list(set([pkg.source_package_name for pkg in ppa.getPublishedSources()]))) -@app.route("///", methods=["GET"]) +@app.route("///") def index_package(LPUSER, PPA, PACKAGE): lpuser = launchpad.people[LPUSER] -- cgit v1.2.3