Skip to content

Commit

Permalink
feat(#95) add localization in mobile request
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperobertgh committed Jul 30, 2018
1 parent d71f404 commit af464e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,7 @@
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>need photo library access to get pictures from there</string>
</edit-config>
<engine name="browser" spec="^4.1.0" />
<engine name="ios" spec="4.5.4" />
<engine name="android" spec="6.3.0" />
</widget>
2 changes: 1 addition & 1 deletion src/providers/repositories/risk-level-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class RiskLevelRepositoryProvider {
constructor(public http: HttpService){}

getAll() {
return this.http.get('risklevel', 3)
return this.http.get('risklevel/localized', 3)
.pipe(map(response => response));
}

Expand Down
2 changes: 1 addition & 1 deletion src/providers/repositories/utilisation-code-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class UtilisationCodeRepositoryProvider {
if (!idUtilisationCode) {
return Observable.of(new UtilisationCode());
} else {
return this.http.get('utilisationcode/' + idUtilisationCode)
return this.http.get('utilisationcode/localized/' + idUtilisationCode)
.pipe(map(response => {
console.log(response);
return response;
Expand Down

0 comments on commit af464e5

Please sign in to comment.