Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleh-Kril committed Jan 17, 2024
2 parents ca95545 + d570075 commit 0de146a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/api/news/news.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const NewsApi = {

create: (news: News) => Agent.post<News>(`${API_ROUTES.NEWS.CREATE}`, news),

delete: (id: number) => AgentFrontend.delete(`${API_ROUTES.NEWS.DELETE}/${id}`),
delete: (id: number) => Agent.delete(`${API_ROUTES.NEWS.DELETE}/${id}`),

update: (news: News) => AgentFrontend.put<News>(`${API_ROUTES.NEWS.UPDATE}`, news),
update: (news: News) => Agent.put<News>(`${API_ROUTES.NEWS.UPDATE}`, news),
};

export default NewsApi;
4 changes: 2 additions & 2 deletions src/app/api/streetcode/streetcodes.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ const StreetcodesApi = {
create: (streetcode: StreetcodeCreate) => Agent
.post<StreetcodeCreate>(`${API_ROUTES.STREETCODES.CREATE}`, streetcode),

update: (streetcode: StreetcodeUpdate) => AgentFrontend
update: (streetcode: StreetcodeUpdate) => Agent
.put<StreetcodeUpdate>(`${API_ROUTES.STREETCODES.UPDATE}`, streetcode),

updateState: (id: number, stateId: number) => Agent.put<void>(
`${API_ROUTES.STREETCODES.UPDATE_STATE}/${id}/${stateId}`,
{},
),

delete: (id: number) => AgentFrontend.delete(`${API_ROUTES.STREETCODES.DELETE}/${id}`),
delete: (id: number) => Agent.delete(`${API_ROUTES.STREETCODES.DELETE}/${id}`),

existWithIndex: (index:number) => Agent.get<boolean>(`${API_ROUTES.STREETCODES.EXIST_WITH_INDEX}/${index}`),

Expand Down

0 comments on commit 0de146a

Please sign in to comment.