Last active
February 10, 2023 14:44
-
-
Save taras/e1f3d56ac650fbc6707bf6bcf0a0e8e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function useComposer() { | |
const github = // useApi(Scm) | |
const token = github.token | |
return { | |
async getRepositories() { | |
return fetch(.../repositoriess) | |
}, | |
async getFeatures() { | |
return fetch(.../features) | |
}, | |
async getBranches() { | |
return fetch(.../branches) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment