Add json content type
Test / test (push) Failing after 53s Details

This commit is contained in:
Jeff 2024-10-14 15:30:39 -04:00
parent f3e3077374
commit c684e2e31c
1 changed files with 6 additions and 0 deletions

View File

@ -182,6 +182,9 @@ export default function start(self: ServiceWorkerGlobalScope) {
{
method: "POST",
body: JSON.stringify(subscription),
headers: {
"Content-Type": "application/json",
},
}
)
@ -203,6 +206,9 @@ export default function start(self: ServiceWorkerGlobalScope) {
return fetch(`${process.env.BASE_URL}/api/subscription/${id}`, {
method: "PUT",
body: JSON.stringify(subscription),
headers: {
"Content-Type": "application/json",
},
})
}
}