mhoppa commented on a change in pull request #4518: Add service category
feature to TO and TP
URL: https://github.com/apache/trafficcontrol/pull/4518#discussion_r395156469
##########
File path: traffic_ops/traffic_ops_golang/routing/routes.go
##########
@@ -477,8 +484,9 @@ func Routes(d ServerData) ([]Route, []RawRoute,
http.Handler, error) {
////DeliveryServices
{api.Version{2, 0}, http.MethodGet, `deliveryservices/?$`,
api.ReadHandler(&deliveryservice.TODeliveryService{}), auth.PrivLevelReadOnly,
Authenticated, nil, 2238317294, noPerlBypass},
- {api.Version{2, 0}, http.MethodPost, `deliveryservices/?$`,
deliveryservice.CreateV15, auth.PrivLevelOperations, Authenticated, nil,
206431432, noPerlBypass},
- {api.Version{2, 0}, http.MethodPut, `deliveryservices/{id}/?$`,
deliveryservice.UpdateV15, auth.PrivLevelOperations, Authenticated, nil,
2766567527, noPerlBypass},
+ {api.Version{2, 0}, http.MethodGet, `deliveryservices/{id}/?$`,
api.ReadHandler(&deliveryservice.TODeliveryService{}), auth.PrivLevelReadOnly,
Authenticated, nil, 244348195, noPerlBypass},
Review comment:
the deliveryservices/id got deprecated in 2.0.
Also the .json should be removed from regex on the routes
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services