gonextcloud/routes.go

24 lines
533 B
Go
Raw Normal View History

package gonextcloud
import "net/url"
2018-07-30 08:08:35 +00:00
// Routes references the available routes
type Routes struct {
capabilities *url.URL
users *url.URL
groups *url.URL
2018-07-24 18:26:12 +00:00
apps *url.URL
}
2018-07-24 18:26:12 +00:00
const badRequest = 998
var (
apiPath = &url.URL{Path: "/ocs/v1.php/cloud"}
routes = Routes{
capabilities: &url.URL{Path: apiPath.Path + "/capabilities"},
users: &url.URL{Path: apiPath.Path + "/users"},
groups: &url.URL{Path: apiPath.Path + "/groups"},
2018-07-24 18:26:12 +00:00
apps: &url.URL{Path: apiPath.Path + "/apps"},
}
)