Trying to get files from a public gitlab repository using electron

  Kiến thức lập trình

I am currently trying to use a fetch method to get a list of files from a gitlab repository and do not know why I cannot get a list of files from the repo.

I do not know what else to add to get said list of files any help is appreciated.

Try {
    const response = await fetch(‘https://gitlab.com’); // not the actual repo I am trying to reach
    console.log(response);
} catch (error) {
    console.error(error);
}

New contributor

user25530373 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT