Skip to content

Commit

Permalink
fix: remove final slashes on endpoint routes
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolagobat committed Oct 25, 2023
1 parent 6acdbd3 commit 7fe4c09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/app/services/refuge/refuge.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class RefugeService {
}

private getAllRefugesEndpoint(): string {
return `${environment.API}/refuges/`;
return `${environment.API}/refuges`;
}

private getRefugeFromApi(id: string): Observable<GetRefugeResponse> {
Expand All @@ -137,7 +137,7 @@ export class RefugeService {
}

private getRefugeFromIdEndpoint(id: string): string {
return `${environment.API}/refuges/${id}/`;
return `${environment.API}/refuges/${id}`;
}

private deleteRefugeFromApi(id: string): Observable<DeleteRefugeResponse> {
Expand All @@ -163,7 +163,7 @@ export class RefugeService {
}

private deleteRefugeFromIdEndpoint(id: string): string {
return `${environment.API}/refuges/${id}/`;
return `${environment.API}/refuges/${id}`;
}

createRefuge(refuge: CreateRefuge): Observable<CreateRefugeResponse> {
Expand All @@ -182,7 +182,7 @@ export class RefugeService {
}

private createRefugeEndpoint(): string {
return `${environment.API}/refuges/`;
return `${environment.API}/refuges`;
}

updateRefuge(refuge: UpdateRefuge): Observable<UpdateRefugeResponse> {
Expand All @@ -203,6 +203,6 @@ export class RefugeService {
}

private updateRefugeEndpoint(id: string): string {
return `${environment.API}/refuges/${id}/`;
return `${environment.API}/refuges/${id}`;
}
}

0 comments on commit 7fe4c09

Please sign in to comment.