Description: Restructure the API layer and extract the background worker logic. Tasks: - [ ] Create api/ directory. - [ ] Move services/worker.py (or extract MethodWorkerfrom routes) to api/worker.py. - [ ] Move api/v1/optimizer_routes.py to api/routes.py. - [ ] Update api/routes.py to import MethodWorker from api/worker.py. - [ ] Update main.py to register the blueprint from the new location.
Description: Restructure the API layer and extract the background worker logic. Tasks: