Skip to content

Commit

Permalink
updated api url
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Nov 28, 2023
1 parent 462f487 commit 52da177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pwa/src/apiService/resources/availableFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class AvailableFilters {
}

public getCategories = async (): Promise<any> => {
let endpoint = "/openWOO?_queries[]=categorie";
let endpoint = "/publicaties?_queries[]=categorie";

if (window.sessionStorage.getItem("OIDN_NUMBER")) {
endpoint += `&organisatie.oin=${window.sessionStorage.getItem("OIDN_NUMBER")}`;
Expand Down
4 changes: 2 additions & 2 deletions pwa/src/apiService/resources/openWoo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class OpenWoo {
}

public getAll = async (filters: IFiltersContext, currentPage: number, limit: number): Promise<any> => {
let endpoint = `/openWOO?extend[]=all${filtersToQueryParams(
let endpoint = `/publicaties?extend[]=all${filtersToQueryParams(
filters,
)}&_order[publicatiedatum]=desc&_limit=${limit}&_page=${currentPage}`;

Expand All @@ -29,7 +29,7 @@ export default class OpenWoo {
};

public getOne = async (id: string): Promise<any> => {
const { data } = await this._send(this._instance, "GET", `/openWOO/${id}`);
const { data } = await this._send(this._instance, "GET", `/publicaties/${id}`);

return data;
};
Expand Down

0 comments on commit 52da177

Please sign in to comment.