# nextcloud-route-extractor
Extract routes from nextcloud apps
## Usage
```bash
nextcloud-route-extractor /path/to/nextcloud/apps/myapp
```
## Output
```json
{
"routes": [
{
"root": "",
"url": "/config",
"name": "settings#getConfig",
"verb": "GET",
"requirements": {},
"postfix": null,
"defaults": {}
},
...
],
"ocs": [
{
"root": "",
"url": "/api/v1/foo/{id}",
"name": "Foo#get",
"verb": "GET",
"requirements": {},
"postfix": null,
"defaults": {}
},
...
]
}
```
See
[the Nextcloud documentation](https://docs.nextcloud.com/server/latest/developer_manual/basics/routing.html)
for the meaning of the various route parameters.