At the moment each endpoint has to run const Hanami::UserContext userContext = convertContext(context); from the given context-object in json-format. This is unnecessary code and has to be moved to a central position before the endpoints and then the converted object has to be forwarded instead of the json-objects
Acceptance Criteria
user-context is converted before trigger the endpoints
const Hanami::UserContext userContext = convertContext(context); was removed from all endoints
QA
Description
At the moment each endpoint has to run
const Hanami::UserContext userContext = convertContext(context);
from the given context-object in json-format. This is unnecessary code and has to be moved to a central position before the endpoints and then the converted object has to be forwarded instead of the json-objectsAcceptance Criteria
const Hanami::UserContext userContext = convertContext(context);
was removed from all endointsBlocked by
How to test