Skip to content

Commit

Permalink
classify url changed anf nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
CvetaCapova committed Jun 15, 2024
1 parent 4e16519 commit dfe46dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# The identifier Backend is internal to nginx, and used to name this specific upstream
upstream Backend {
# hello is the internal DNS name used by the backend Service inside Kubernetes
server backend;
}

server {
listen 80;

Expand All @@ -12,8 +6,4 @@ server {
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}

location /api/ {
proxy_pass http://Backend;
}
}
2 changes: 1 addition & 1 deletion frontend/src/app/services/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class DataService {
classify(image: File, id:number): Observable<any> {
const formData = new FormData();
formData.append('file', image);
return this.http.post(this.inference_url+'/'+id, formData, {responseType: 'text'});
return this.http.post(this.serving_url+'/'+id+'/infer', formData, {responseType: 'text'}); //serving/id/infer
}

}

0 comments on commit dfe46dd

Please sign in to comment.