[BLOCKED - NEEDS FURTHER DEFINITION] Extract router.py queries to backend apis
In order to simplify the process of updating the models of the DB it would be best not to have both services accessing the DB directly, to avoid mapping on both projects the models and queries.
Use different MR's:
-
Implement api-token middleware to access backend -
Implement if not already existent apis to fetch necessary data in backend -
In router.py replace query to DB to call to backend