Skip to content

Commit

Permalink
all forward slash urls
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Jan 6, 2024
1 parent b79f746 commit e9f3840
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jhub_apps/static/js/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui/src/pages/home/app-card/app-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export const AppCard = ({
const [isEditOpen, setIsEditOpen] = useState(false);

const startRequest = async ({ id }: AppQueryPostProps) => {
const response = await axios.post(`/server/${id}`);
const response = await axios.post(`/server/${id}/`);
return response;
};

const deleteRequest = async ({ id, remove }: AppQueryDeleteProps) => {
const response = await axios.delete(`/server/${id}`, {
const response = await axios.delete(`/server/${id}/`, {
params: {
remove,
},
Expand Down
6 changes: 3 additions & 3 deletions ui/src/pages/home/app-form/app-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const AppForm = ({
>({
queryKey: ['app-form', id],
queryFn: () =>
axios.get(`/server/${id}`).then((response) => {
axios.get(`/server/${id}/`).then((response) => {
return response.data;
}),
enabled: !!id,
Expand Down Expand Up @@ -182,7 +182,7 @@ export const AppForm = ({
formData.append('thumbnail', currentFile as Blob);
}

const response = await axios.post('/server', formData, { headers });
const response = await axios.post('/server/', formData, { headers });
return response.data;
};

Expand All @@ -200,7 +200,7 @@ export const AppForm = ({
formData.append('thumbnail', currentFile as Blob);
}

const response = await axios.put(`/server/${servername}`, formData, {
const response = await axios.put(`/server/${servername}/`, formData, {
headers,
});
return response.data;
Expand Down

0 comments on commit e9f3840

Please sign in to comment.