Skip to content

Commit

Permalink
pass url as query string
Browse files Browse the repository at this point in the history
  • Loading branch information
Janaka-Steph committed Aug 24, 2023
1 parent 4c2cf51 commit ec8daa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/settings/api/deleteRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Registries } from "../types";

const deleteRegistry = async (data: Registries): Promise<AxiosResponse<Message>> => {
const backendUrl = useSettingStore.getState().backendUrl;
return axios.delete(`${backendUrl}/v1/registries/`, { data });
return axios.delete(`${backendUrl}/v1/registries/?url=${data.url}`);
};

export default deleteRegistry;

0 comments on commit ec8daa9

Please sign in to comment.