cURL
curl --request GET \ --url http://localhost:3000/api/v1/files/roots \ --header 'Authorization: Bearer <token>'
{ "ok": true, "data": null }
Returns the filesystem roots that the file browser can navigate: the project working directory and the .polpo configuration directory.
API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.
Array of root directories with name, path, and description