Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 624 Bytes

File metadata and controls

36 lines (19 loc) · 624 Bytes

@devvit/public-api v0.12.20-dev


Function: fetchDevvitWeb()

fetchDevvitWeb(ctx, endpoint, init?): Promise<Response>

Makes a fetch request to the devvit web backend server from your block app This is a migration tool to help you migrate your block app to the new Devvit Web architecture.

Parameters

ctx

BaseContext

the devvit context

endpoint

string

the endpoint to make the request to

init?

RequestInit

the request init options

Returns

Promise<Response>

a promise that resolves to the fetch response