@@ -24,7 +24,7 @@ export const getSegmentData = async (req: Request, res: Response) => {
2424 const cached = await redis . get ( cacheKey ) ;
2525 if ( cached ) return res . status ( 200 ) . json ( JSON . parse ( cached ) ) ;
2626
27- const url = `${ globalConfig . pythonURL } /coordinate/ segment-data?camera_id=${ cameraId } ` ;
27+ const url = `${ globalConfig . pythonURL } /segment-data?camera_id=${ cameraId } ` ;
2828 const response = await axios . get ( url , {
2929 headers : { Authorization : `Bearer ${ token } ` }
3030 } ) ;
@@ -47,7 +47,7 @@ export const getBirdStatistics = async (req: Request, res: Response) => {
4747 const cached = await redis . get ( cacheKey ) ;
4848 if ( cached ) return res . status ( 200 ) . json ( JSON . parse ( cached ) ) ;
4949
50- const url = `${ globalConfig . pythonURL } /coordinate/ bird-statistics/by-camera?camera_id=${ cameraId } ` ;
50+ const url = `${ globalConfig . pythonURL } /bird-statistics/by-camera?camera_id=${ cameraId } ` ;
5151 const response = await axios . get ( url , {
5252 headers : { Authorization : `Bearer ${ token } ` }
5353 } ) ;
@@ -70,7 +70,7 @@ export const getHeatmapData = async (req: Request, res: Response) => {
7070 const cached = await redis . get ( cacheKey ) ;
7171 if ( cached ) return res . status ( 200 ) . json ( JSON . parse ( cached ) ) ;
7272
73- const url = `${ globalConfig . pythonURL } /coordinate/ heatmap-data?camera_id=${ cameraId } ` ;
73+ const url = `${ globalConfig . pythonURL } /heatmap-data?camera_id=${ cameraId } ` ;
7474 const response = await axios . get ( url , {
7575 headers : { Authorization : `Bearer ${ token } ` }
7676 } ) ;
0 commit comments