mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-06 02:26:24 +00:00
24 lines
532 B
Go
24 lines
532 B
Go
package gonextcloud
|
|
|
|
import "net/url"
|
|
|
|
// Route references the available routes
|
|
type Routes struct {
|
|
capabilities *url.URL
|
|
users *url.URL
|
|
groups *url.URL
|
|
apps *url.URL
|
|
}
|
|
|
|
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"},
|
|
apps: &url.URL{Path: apiPath.Path + "/apps"},
|
|
}
|
|
)
|