X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fotf.git;a=blobdiff_plain;f=a1-sdnc-vth%2Fapp%2Froutes%2Fservice.py;fp=a1-sdnc-vth%2Fapp%2Froutes%2Fservice.py;h=e06bf9428681c0e3f6d3c1157c213011d33cffdc;hp=0000000000000000000000000000000000000000;hb=63b197b11b12a536254352f134262ad90f31593b;hpb=fa00af93f9173da630cd425fa8e0cbfaadf39a68 diff --git a/a1-sdnc-vth/app/routes/service.py b/a1-sdnc-vth/app/routes/service.py new file mode 100644 index 0000000..e06bf94 --- /dev/null +++ b/a1-sdnc-vth/app/routes/service.py @@ -0,0 +1,16 @@ +from app.helpers import response_helper as ResponseHelper +from app.helpers import service_helper as Service +from . import config, ROUTES + +@ROUTES.route("/services", methods=['GET', 'DELETE']) +def handleS_services(): + return ResponseHelper.route_check(config=config, get_function=Service.get_services_using_get, delete_function=Service.delete_services_using_delete) + + +@ROUTES.route("/service", methods=['PUT']) +def handle_service(): + return ResponseHelper.route_check(config=config, put_function=Service.put_service_using_put) + +@ROUTES.route("/services/keepalive", methods=['PUT']) +def handle_services_keepalive(): + return ResponseHelper.route_check(config=config, put_function=Service.keep_alive_service_using_put)