kopia lustrzana https://github.com/cloudflare/wildebeest
send JSON to initialize the db
rodzic
59ea1eb90b
commit
74c7e4d3da
|
@ -23,8 +23,12 @@ async function createStatus(db: D1Database, actor: Person, status: string, visib
|
|||
status,
|
||||
visibility,
|
||||
}
|
||||
const headers = {
|
||||
'content-type': 'application/json',
|
||||
}
|
||||
const req = new Request('https://example.com', {
|
||||
method: 'POST',
|
||||
headers,
|
||||
body: JSON.stringify(body),
|
||||
})
|
||||
await statusesAPI.handleRequest(req, db, actor, kek)
|
||||
|
|
Ładowanie…
Reference in New Issue