Commit 2884f209 authored by Martin Prudek's avatar Martin Prudek

apiv1: Add "action" distinction

parent 0eb932ee
......@@ -29,12 +29,13 @@ def log_debug_json(msg, msg_json):
current_app.logger.debug("%s:\n%s", msg, json.dumps(msg_json, indent=2))
@apiv1.route("certs", methods=['POST'])
@apiv1.route("", methods=['POST'])
def auth_request():
def certs_view():
# is class bytes
req_json = request.get_json() # class dict
log_debug_json("Incomming connection", req_json)
reply = process_request(req_json, get_redis())
reply = process_request(req_json, get_redis(), "certs")
log_debug_json("Reply", reply)
return jsonify(reply)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment