Skip to content

[Feat] Plot image endpoint #6

@angel-penchev

Description

@angel-penchev

Describe the feature you'd like
Create an POST "/plot/<connection code>" endpoint, which accepts form-data containg only 1 field - image. It should search the database for a plotter with the same connection code, get the session id from there, get the socket by the session id and forward the image on the plotter.

Additional context

  • The following code snippet might be helpful:
    const plotterSocket = io.sockets.sockets.get(sessionId);

Metadata

Metadata

Assignees

Labels

apiTasks regarding the APIfeatureNew feature request

Type

No type

Projects

Status

📌 Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions