Loading capif_backend/backoffice_service/controllers/default_controller.py +3 −1 Original line number Diff line number Diff line Loading @@ -2,13 +2,15 @@ from flask import Blueprint, jsonify from ..core.operations import Operations from flask_jwt_extended import jwt_required, get_jwt_identity # create blueprint backoffice_routes backoffice_routes = Blueprint("backoffice_routes", __name__) operations = Operations() # create operations object -> operations.py @backoffice_routes.route("/invokers", methods=["GET"]) @backoffice_routes.route("/resources/invokers", methods=["GET"]) @jwt_required() def get_invokers(): return operations.get_invokers() Loading Loading
capif_backend/backoffice_service/controllers/default_controller.py +3 −1 Original line number Diff line number Diff line Loading @@ -2,13 +2,15 @@ from flask import Blueprint, jsonify from ..core.operations import Operations from flask_jwt_extended import jwt_required, get_jwt_identity # create blueprint backoffice_routes backoffice_routes = Blueprint("backoffice_routes", __name__) operations = Operations() # create operations object -> operations.py @backoffice_routes.route("/invokers", methods=["GET"]) @backoffice_routes.route("/resources/invokers", methods=["GET"]) @jwt_required() def get_invokers(): return operations.get_invokers() Loading