Commit 674fdc83 authored by Robin Obůrka's avatar Robin Obůrka

apiv1: Add redirect to home page for GET method

parent e3b9cce0
......@@ -7,6 +7,7 @@ from flask import request
from flask import jsonify
from flask import g
from flask import current_app
from flask import redirect, url_for
from .authentication import process_request
......@@ -36,3 +37,8 @@ def auth_request():
reply = process_request(req_json, get_redis())
log_debug_json("Reply", reply)
return jsonify(reply)
@apiv1.route("", methods=['GET'])
def redirect_humans():
return redirect(url_for("pages.home"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment