feat(myTischtennis): implement asynchronous team data fetching and job status tracking
- Added a new endpoint to start an asynchronous job for fetching team data, allowing for non-blocking operations. - Implemented job status tracking to retrieve the status of ongoing fetch jobs, enhancing user experience with real-time updates. - Updated the frontend to initiate async fetch requests and poll for job completion, improving data retrieval efficiency and user feedback.
This commit is contained in:
@@ -64,6 +64,12 @@ router.post('/configure-league', myTischtennisUrlController.configureLeague);
|
||||
// POST /api/mytischtennis/fetch-team-data - Manually fetch team data
|
||||
router.post('/fetch-team-data', myTischtennisUrlController.fetchTeamData);
|
||||
|
||||
// POST /api/mytischtennis/fetch-team-data/async - Start async manual fetch
|
||||
router.post('/fetch-team-data/async', myTischtennisUrlController.startFetchTeamDataJob);
|
||||
|
||||
// GET /api/mytischtennis/fetch-team-data/jobs/:jobId - Get async fetch job status
|
||||
router.get('/fetch-team-data/jobs/:jobId', myTischtennisUrlController.getFetchTeamDataJobStatus);
|
||||
|
||||
// GET /api/mytischtennis/team-url/:teamId - Get myTischtennis URL for team
|
||||
router.get('/team-url/:teamId', myTischtennisUrlController.getTeamUrl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user