File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515topic_service = TopicService ()
1616ai_processor = AITopicProcessor ()
1717
18- @app .route ('/process-topics' , methods = ['GET' , 'POST' ])
18+ @app .route ('/api/ process-topics' , methods = ['GET' , 'POST' ])
1919def process_topics ():
2020 try :
2121 if request .method == 'POST' :
@@ -33,7 +33,7 @@ def process_topics():
3333 "message" : "An error occurred while processing the request"
3434 }), 500
3535
36- @app .route ('/ai-process' , methods = ['GET' , 'POST' ])
36+ @app .route ('/api/ ai-process' , methods = ['GET' , 'POST' ])
3737def ai_process ():
3838 try :
3939 if request .method == 'POST' :
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export const TopicRefiner: FC<TopicRefinerProps> = ({
8484 }
8585
8686 try {
87- const response = await fetch ( 'http://127.0.0.1:5002 /ai-process' , {
87+ const response = await fetch ( '/api /ai-process' , {
8888 method : 'POST' ,
8989 headers : {
9090 'Content-Type' : 'application/json' ,
@@ -369,4 +369,4 @@ export const TopicRefiner: FC<TopicRefinerProps> = ({
369369 ) }
370370 </ >
371371 ) ;
372- } ;
372+ } ;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ const TopicHistogram: FC = () => {
173173
174174 setIsLoading ( true ) ;
175175
176- fetch ( 'http://127.0.0.1:5002 /process-topics' , {
176+ fetch ( '/api /process-topics' , {
177177 method : 'POST' ,
178178 headers : {
179179 'Content-Type' : 'application/json' ,
@@ -427,4 +427,4 @@ const TopicHistogram: FC = () => {
427427 ) ;
428428} ;
429429
430- export default TopicHistogram ;
430+ export default TopicHistogram ;
You can’t perform that action at this time.
0 commit comments