rest-to-jsonrpc-2.0
v1.0.24
Published
Downloads
58
Readme
rest-to-jsonrpc-2.0
Receive the paths REST.
{
path,
id,
params
}Return to JSONRPC.
{
method: 'test_ping',
jsonrpc: '2.0',
params: {
test: 'oi',
test2: 'oi2',
},
id: 'test123',
}Your path the route is a method by server side.
Methods in server side.
type Methods = {
test_ping(params: { x: string }): string,
}