Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Plot image endpoint #6

Open
angel-penchev opened this issue Mar 17, 2022 · 0 comments
Open

[Feat] Plot image endpoint #6

angel-penchev opened this issue Mar 17, 2022 · 0 comments
Assignees
Labels
api Tasks regarding the API feature New feature request

Comments

@angel-penchev
Copy link
Member

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);
@angel-penchev angel-penchev added feature New feature request api Tasks regarding the API labels Mar 17, 2022
@angel-penchev angel-penchev added this to the FMI{Codes} 2022 - MVP milestone Mar 17, 2022
@angel-penchev angel-penchev moved this to 📌 Todo in Intero ✨ Mar 17, 2022
@simo1209 simo1209 self-assigned this Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Tasks regarding the API feature New feature request
Projects
Status: 📌 Todo
Development

No branches or pull requests

2 participants