mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-16 04:16:25 +00:00
30 lines
844 B
Go
30 lines
844 B
Go
package gonextcloud
|
|
|
|
import "net/url"
|
|
|
|
// Routes references the available routes
|
|
type Routes struct {
|
|
capabilities *url.URL
|
|
users *url.URL
|
|
groups *url.URL
|
|
apps *url.URL
|
|
monitor *url.URL
|
|
shares *url.URL
|
|
groupfolders *url.URL
|
|
}
|
|
|
|
const badRequest = 998
|
|
|
|
var (
|
|
apiPath = &url.URL{Path: "/ocs/v2.php"}
|
|
routes = Routes{
|
|
capabilities: &url.URL{Path: apiPath.Path + "/cloud/capabilities"},
|
|
users: &url.URL{Path: apiPath.Path + "/cloud/users"},
|
|
groups: &url.URL{Path: apiPath.Path + "/cloud/groups"},
|
|
apps: &url.URL{Path: apiPath.Path + "/cloud/apps"},
|
|
monitor: &url.URL{Path: apiPath.Path + "/apps/serverinfo/api/v1/info"},
|
|
shares: &url.URL{Path: apiPath.Path + "/apps/files_sharing/api/v1/shares"},
|
|
groupfolders: &url.URL{Path: "apps/groupfolders/folders"},
|
|
}
|
|
)
|