first commit
commit
9094ef2bba
@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
fetch("https://forge.gwenaelremond.fr/api/v1/user/repos", {
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
Authorization: "token ${MON_TOKEN_API}",
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
Accept: "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
name: "exercice",
|
||||||
|
description: "Leon",
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
.then((response) => response.json())
|
||||||
|
.then((data) => console.log(data));
|
||||||
Loading…
Reference in New Issue