e06bf9428681c0e3f6d3c1157c213011d33cffdc
[it/otf.git] / a1-sdnc-vth / app / routes / service.py
1 from app.helpers import response_helper as ResponseHelper\r
2 from app.helpers import service_helper as Service\r
3 from . import config, ROUTES\r
4 \r
5 @ROUTES.route("/services", methods=['GET', 'DELETE'])\r
6 def handleS_services():\r
7     return ResponseHelper.route_check(config=config, get_function=Service.get_services_using_get, delete_function=Service.delete_services_using_delete)\r
8 \r
9 \r
10 @ROUTES.route("/service", methods=['PUT'])\r
11 def handle_service():\r
12     return ResponseHelper.route_check(config=config, put_function=Service.put_service_using_put)\r
13 \r
14 @ROUTES.route("/services/keepalive", methods=['PUT'])\r
15 def handle_services_keepalive():\r
16     return ResponseHelper.route_check(config=config, put_function=Service.keep_alive_service_using_put)\r