request
response
{
'path':'/api/v1/compile',
'content': {
'field0':'content0',
'field1': {
'field2':'content2'
}
}
}
Handle the requests to /read
endpoint.
The request is processed via electron IPC messages:
request
response
Private
sendSends a message to the frontend from inside to a REST endpoint, the message content depends on the endpoint parameters and on the client (i.e. who called the endpoint) request.
electron main window
endpoint path
Optional
content: anyPrivate
sendSends the frontend message to the client who called the REST endpoint, and based on the frontend message it returns an appropriate HTTP response.
the frontend message (response to a previous request)
a code that specify the frontend message 'type' (@example if the
frontend message is a consequence of a previous /compile
or /read
request)
callback for succesfull operation
callback for errors
Generated using TypeDoc
Handle the requests to
/compile
endpoint. The request is processed via electron IPC messages: