Templates 2.0 (#636)
Templates 2.0 and a whole bunch of other refactoring
This commit is contained in:
@@ -18,11 +18,8 @@ export async function proxySyscall(
|
||||
name: string,
|
||||
args: any[],
|
||||
): Promise<any> {
|
||||
if (!ctx.plug) {
|
||||
throw new Error(`Cannot proxy ${name} syscall without plug context`);
|
||||
}
|
||||
const resp = await httpSpacePrimitives.authenticatedFetch(
|
||||
`${httpSpacePrimitives.url}/.rpc/${ctx.plug}/${name}`,
|
||||
`${httpSpacePrimitives.url}/.rpc/${ctx.plug || "_"}/${name}`,
|
||||
{
|
||||
method: "POST",
|
||||
body: JSON.stringify(args),
|
||||
|
||||
Reference in New Issue
Block a user