Skip to content

Commit 50b34fa

Browse files
committed
Updated Angular API URL for Nginx reverse proxy
1 parent cdb225c commit 50b34fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/app/services/tutorial.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http';
33
import { Observable } from 'rxjs';
44
import { Tutorial } from '../models/tutorial.model';
55

6-
const baseUrl = 'http://localhost:8080/api/tutorials';
6+
const baseUrl = '/api/tutorials';
77

88
@Injectable({
99
providedIn: 'root'
@@ -39,4 +39,4 @@ export class TutorialService {
3939
findByTitle(title: any): Observable<Tutorial[]> {
4040
return this.http.get<Tutorial[]>(`${baseUrl}?title=${title}`);
4141
}
42-
}
42+
}

0 commit comments

Comments
 (0)