Closed snakedye closed 3 weeks ago
@Youllou The API remains the same. Once that's merged I'll focus on making /analyze work alone. Test on your end if the frontend works as is with this branch before approving.
All the unit tests pass.
Je ne comprends pas comment l'authentification fonctionne, Est ce que je dois passer pas /new_label avant /upload ?
@Youllou Dans cette PR j'assume juste que le user_id est valide. Le check ne fonctionne pas vraiment.
This PR doesn't change the API of the router. Only the mechanics under the hood.
Architecture
In this representation:
sessions
is the top-level dictionary.user_id
is a key in thesessions
dictionary, mapping to another dictionary.label_id
is a key, corresponding to its specific label.This structure allows each user to have a unique set of labels, and each label can store a
LabelStorage
.Closes #47