define endpoints as constants
This commit is contained in:
@@ -17,9 +17,17 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
defaultPermissionsURL = "https://permissions-api.hollow-a.sv15.metalkube.net"
|
||||
|
||||
defaultHTTPClientTimeout = 5 * time.Second
|
||||
|
||||
defaultPermissionsURL = "https://permissions-api.hollow-a.sv15.metalkube.net"
|
||||
permsPathAllow = "/api/v1/allow"
|
||||
|
||||
permsPathResourceRelationshipsFormat = "/api/v1/resources/%s/relationships"
|
||||
permsPathResourceRelationshipsFrom = "/api/v1/relationships/from/"
|
||||
permsPathResourceRelationshipsTo = "/api/v1/relationships/to/"
|
||||
permsPathResourceRolesFormat = "/api/v1/resources/%s/roles"
|
||||
|
||||
permsPathRoleAssignmentsFormat = "/api/v1/roles/%s/assignments"
|
||||
)
|
||||
|
||||
// DefaultHTTPClient is the default HTTP client for the Permissions Client.
|
||||
|
||||
Reference in New Issue
Block a user