Skip to content

Commit

Permalink
add more api
Browse files Browse the repository at this point in the history
  • Loading branch information
M3chD09 committed Jul 30, 2022
1 parent cb43355 commit d9ab25f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const MS_GRAPH_VER = "1.0";
const MS_GRAPH_API_LIST = [
`${MS_GRAPH_ROOT}/v${MS_GRAPH_VER}/me`,
`${MS_GRAPH_ROOT}/v${MS_GRAPH_VER}/me/drive`,
`${MS_GRAPH_ROOT}/v${MS_GRAPH_VER}/me/drive/recent`,
`${MS_GRAPH_ROOT}/v${MS_GRAPH_VER}/me/drive/sharedWithMe`,
`${MS_GRAPH_ROOT}/v${MS_GRAPH_VER}/me/drive/root`,
`${MS_GRAPH_ROOT}/v${MS_GRAPH_VER}/me/drive/root/children`,
`${MS_GRAPH_ROOT}/v${MS_GRAPH_VER}/me/mailFolders`,
Expand Down Expand Up @@ -223,6 +225,9 @@ async function fetchMSApi(url) {
}

function randomInt(min, max) {
if (min > max) {
return randomInt(max, min);
}
return Math.floor(Math.random() * (max - min) + min);
}

Expand Down

0 comments on commit d9ab25f

Please sign in to comment.