Skip to content

Commit

Permalink
fix: remove ahm..rs api prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Dec 25, 2023
1 parent e0998b5 commit f168ec5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions libs/portal-integration-angular/mocks/announcementMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { rest } from 'msw'
import { mockAnnouncements, mockAnnouncement } from './mockAnnouncement'

export const mockedGetAnnouncements = rest.get(
'/ahm-api/announcement-help-management-rs/internal/announcements',
'/ahm-api/internal/announcements',
(_, response, context) => {
return response(context.json(mockAnnouncements))
}
)

export const mockGetAnnouncement = rest.get(
'/ahm-api/announcement-help-management-rs/internal/announcements/*',
'/ahm-api/internal/announcements/*',
(_, response, context) => {
return response(context.json(mockAnnouncement))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export class AnnouncementsApiService {
startDateTo: string,
endDateFrom: string
): Observable<Array<AnnouncementItem>> {
return this.http.get<Array<AnnouncementItem>>(`./ahm-api/announcement-help-management-rs/internal/announcements`, {
return this.http.get<Array<AnnouncementItem>>(`./ahm-api/internal/announcements`, {
params: { appId: appId, status: 'ACTIVE', startDateTo: startDateTo, endDateFrom: endDateFrom },
headers: { Accept: 'application/json' },
})
}

public getAnnouncementById(id: string): Observable<AnnouncementItem> {
return this.http.get<AnnouncementItem>(`./ahm-api/announcement-help-management-rs/internal/announcements/${id}`)
return this.http.get<AnnouncementItem>(`./ahm-api/internal/announcements/${id}`)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Injectable } from '@angular/core'
import { map, Observable } from 'rxjs'
import { HelpData } from '../model/help-data'

const baseUrl = './ahm-api/announcement-help-management-rs/internal/applications'
const baseUrl = './ahm-api/internal/applications'

@Injectable({ providedIn: 'root' })
export class HelpPageAPIService {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onecx/onecx-portal-ui-libs",
"version": "3.7.0",
"version": "3.7.1",
"license": "Apache-2.0",
"scripts": {
"sass": "npx sass libs/portal-integration-angular/assets/styles.scss libs/portal-integration-angular/assets/output.css"
Expand Down

0 comments on commit f168ec5

Please sign in to comment.