diff --git a/samples/multi_tenant_app.py b/samples/multi_tenant_app.py index 5696a97..0440387 100644 --- a/samples/multi_tenant_app.py +++ b/samples/multi_tenant_app.py @@ -12,7 +12,7 @@ from flask import Flask, request, jsonify from http.client import HTTPConnection -from _base_api import UnauthorizedError +from c8y_api._base_api import UnauthorizedError from c8y_api.app import MultiTenantCumulocityApp @@ -52,6 +52,15 @@ def health(): return jsonify({'status': 'ok'}) +@webapp.route("/debug") +def debug(): + """Return debug information.""" + return jsonify({ + 'headers': dict(request.headers), + 'cookies': dict(request.cookies), + }) + + @webapp.route("/tenant") def tenant_info(): """Return subscribed tenant's ID, username and devices it has access to."""