mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-24 23:36:25 +00:00
23 lines
491 B
Go
23 lines
491 B
Go
package gonextcloud
|
|
|
|
import "net/url"
|
|
|
|
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"},
|
|
}
|
|
)
|