Skip to content

Commit

Permalink
fix 404 error after update spring framework
Browse files Browse the repository at this point in the history
  • Loading branch information
thcathy authored Jul 12, 2024
1 parent 49a762e commit 265b755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/service/fund.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export class FundService {
return this.http.get<Fund[]>(this.ALL_FUND_URL);
}

submitRequest(request: string): Promise<string> {
if (request.slice(-1) !== '/') { request += '/'; }
submitRequest(request: string): Promise<string> {
console.log(`calling fund request url ${request}`);
return this.http.get(this.BASE_REQUEST_URL + request)
.toPromise()
Expand Down
4 changes: 2 additions & 2 deletions src/app/service/squote.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class SquoteService {
) {
}

private createHoldingStockUrl = environment.apiHost + '/rest/createholding/create/?'; // URL to web api
private updateFundByHoldingUrl = environment.apiHost + '/rest/createholding/updatefund/?';
private createHoldingStockUrl = environment.apiHost + '/rest/createholding/create?'; // URL to web api
private updateFundByHoldingUrl = environment.apiHost + '/rest/createholding/updatefund?';

createHoldingStock(message: string, hscei: string) {
const queryString = 'message=' + encodeURIComponent(message) + '&hscei=' + hscei;
Expand Down

0 comments on commit 265b755

Please sign in to comment.