Backend: Working on issue API

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-01-30 21:30:03 +00:00
parent b21ac8d562
commit a0de55274d

View File

@ -4,13 +4,11 @@ async function sendToGitea(body) {
let key = process.env.OWL_GIT_ISSUEBOT
let url = process.env.OWL_GIT_APIENDPOINT
let options = {
method: 'post',
timeout: 2000,
headers: {
Accept: 'application/json',
Authorization: key
},
data: body
data: body,
withCredantials: true
}
await axios.post(url, options)