dewrich closed pull request #2347: Add Back TO Perl DS Routes
URL: https://github.com/apache/incubator-trafficcontrol/pull/2347
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/traffic_ops/app/lib/TrafficOpsRoutes.pm 
b/traffic_ops/app/lib/TrafficOpsRoutes.pm
index 9ed303c0e..5c944b957 100644
--- a/traffic_ops/app/lib/TrafficOpsRoutes.pm
+++ b/traffic_ops/app/lib/TrafficOpsRoutes.pm
@@ -501,7 +501,12 @@ sub api_routes {
 
        # -- DELIVERYSERVICES
        # -- DELIVERYSERVICES: CRUD
+       $r->get("/api/$version/deliveryservices")->over( authenticated => 1, 
not_ldap => 1 )->to( 'Deliveryservice#index', namespace => $namespace );
+       $r->get( "/api/$version/deliveryservices/:id" => [ id => qr/\d+/ ] 
)->over( authenticated => 1, not_ldap => 1 )->to( 'Deliveryservice#show', 
namespace => $namespace );
+       $r->post("/api/$version/deliveryservices")->over( authenticated => 1, 
not_ldap => 1 )->to( 'Deliveryservice#create', namespace => $namespace );
+       $r->put("/api/$version/deliveryservices/:id" => [ id => qr/\d+/ ] 
)->over( authenticated => 1, not_ldap => 1 )->to( 'Deliveryservice#update', 
namespace => $namespace );
        $r->put("/api/$version/deliveryservices/:id/safe" => [ id => qr/\d+/ ] 
)->over( authenticated => 1, not_ldap => 1 )->to( 
'Deliveryservice#safe_update', namespace => $namespace );
+       $r->delete("/api/$version/deliveryservices/:id" => [ id => qr/\d+/ ] 
)->over( authenticated => 1, not_ldap => 1 )->to( 'Deliveryservice#delete', 
namespace => $namespace );
 
        # get all delivery services associated with a server (from 
deliveryservice_server table)
        $r->get( "/api/$version/servers/:id/deliveryservices" => [ id => 
qr/\d+/ ] )->over( authenticated => 1, not_ldap => 1 )->to( 
'Deliveryservice#get_deliveryservices_by_serverId', namespace => $namespace );


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to