This is an automated email from the ASF dual-hosted git repository.
mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 4f89fb9 Allow json endpoint on delivery services (#4533)
4f89fb9 is described below
commit 4f89fb9365b2d90b63ab08cefa32d2ed9678b64b
Author: Steve Hamrick <[email protected]>
AuthorDate: Wed Mar 25 08:31:23 2020 -0600
Allow json endpoint on delivery services (#4533)
* Add json endpoint
* Remove change
* Dont update 2.0 route
---
traffic_ops/traffic_ops_golang/routing/routes.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/traffic_ops/traffic_ops_golang/routing/routes.go
b/traffic_ops/traffic_ops_golang/routing/routes.go
index 9a8df83..25b39a3 100644
--- a/traffic_ops/traffic_ops_golang/routing/routes.go
+++ b/traffic_ops/traffic_ops_golang/routing/routes.go
@@ -680,7 +680,7 @@ func Routes(d ServerData) ([]Route, []RawRoute,
http.Handler, error) {
{api.Version{1, 1}, http.MethodGet,
`deliveryserviceserver/?(\.json)?$`, dsserver.ReadDSSHandler,
auth.PrivLevelReadOnly, Authenticated, nil, 1928775049, noPerlBypass},
{api.Version{1, 1}, http.MethodPost, `deliveryserviceserver$`,
dsserver.GetReplaceHandler, auth.PrivLevelOperations, Authenticated, nil,
429799788, noPerlBypass},
{api.Version{1, 1}, http.MethodPost,
`deliveryservices/{xml_id}/servers$`, dsserver.GetCreateHandler,
auth.PrivLevelOperations, Authenticated, nil, 1428181206, noPerlBypass},
- {api.Version{1, 1}, http.MethodGet,
`servers/{id}/deliveryservices$`,
api.ReadHandler(&dsserver.TODSSDeliveryService{}), auth.PrivLevelReadOnly,
Authenticated, nil, 133115411, noPerlBypass},
+ {api.Version{1, 1}, http.MethodGet,
`servers/{id}/deliveryservices?(\/.json)?$`,
api.ReadHandler(&dsserver.TODSSDeliveryService{}), auth.PrivLevelReadOnly,
Authenticated, nil, 133115411, noPerlBypass},
{api.Version{1, 1}, http.MethodGet,
`deliveryservices/{id}/servers$`, dsserver.GetReadAssigned,
auth.PrivLevelReadOnly, Authenticated, nil, 1345121223, noPerlBypass},
{api.Version{1, 1}, http.MethodGet,
`deliveryservices/{id}/unassigned_servers$`, dsserver.GetReadUnassigned,
auth.PrivLevelReadOnly, Authenticated, nil, 2023944221, noPerlBypass},
{api.Version{1, 1}, http.MethodPost,
`deliveryservices/request`, deliveryservicerequests.Request,
auth.PrivLevelPortal, Authenticated, nil, 740875299, perlBypass},