rawlinp commented on a change in pull request #2862: Add Traffic Ops Golang
federations endpoints
URL: https://github.com/apache/trafficcontrol/pull/2862#discussion_r221731072
##########
File path: traffic_ops/traffic_ops_golang/routes.go
##########
@@ -362,6 +363,11 @@ func Routes(d ServerData) ([]Route, []RawRoute,
http.Handler, error) {
{1.1, http.MethodPut, `cdns/{id}/snapshot/?$`,
crconfig.SnapshotHandler, auth.PrivLevelOperations, Authenticated, nil},
{1.1, http.MethodPut, `snapshot/{cdn}/?$`,
crconfig.SnapshotHandler, auth.PrivLevelOperations, Authenticated, nil},
+ // Federations
+ {1.4, http.MethodGet, `federations/all/?(\.json)?$`,
federations.GetAll, auth.PrivLevelReadOnly, Authenticated, nil},
Review comment:
The endpoint below should be privlevel federation, so does that mean this
one should require the same?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services