'How can i get all Sharepoint folders using Graph API?

Currently I am creating a site in Sharepoint and associating it with Teams and then when i access the Sharepoint folders I call.

     https://graph.microsoft.com/v1.0/me/joinedteams

or can i access the Sharepoint folders directly through a different endpoint ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source