Refactor data loading and streaming pipeline endpoints for improved file handling

- Updated `/load-data` endpoint to make the file parameter optional and added validation for CSV uploads.
- Introduced a new dependency function `get_file_if_csv` to streamline file checks when loading data from CSV.
- Enhanced `/run/streaming-pipeline` endpoint to utilize the new file handling logic.
- Improved code readability by restructuring file renaming logic.
This commit is contained in:
2025-05-03 15:40:50 +01:00
parent 9c429caa56
commit a060fa69c5
2 changed files with 22 additions and 13 deletions
Binary file not shown.