Backend: Working on issue API
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
b21ac8d562
commit
a0de55274d
@ -4,13 +4,11 @@ async function sendToGitea(body) {
|
|||||||
let key = process.env.OWL_GIT_ISSUEBOT
|
let key = process.env.OWL_GIT_ISSUEBOT
|
||||||
let url = process.env.OWL_GIT_APIENDPOINT
|
let url = process.env.OWL_GIT_APIENDPOINT
|
||||||
let options = {
|
let options = {
|
||||||
method: 'post',
|
|
||||||
timeout: 2000,
|
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/json',
|
|
||||||
Authorization: key
|
Authorization: key
|
||||||
},
|
},
|
||||||
data: body
|
data: body,
|
||||||
|
withCredantials: true
|
||||||
}
|
}
|
||||||
|
|
||||||
await axios.post(url, options)
|
await axios.post(url, options)
|
||||||
|
Reference in New Issue
Block a user