Skip to content

Commit

Permalink
EGCETSII#43-fix: remove final slash of api utils
Browse files Browse the repository at this point in the history
  • Loading branch information
JSnow11 committed Jan 9, 2022
1 parent ce0fddf commit 8edc9a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions decide/administration/frontend/src/api/votingApiUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const votingApi = {

//Individual Operations
getQuestion: (questionId: number) =>
axios.get(`/voting/question/${questionId}/`),
axios.get(`/voting/question/${questionId}`),
createQuestion: (question: votingType.Question) =>
axios.post("/voting/question/", question),
updateQuestion: (question: votingType.Question, questionId: number) =>
axios.put(`/voting/question/${questionId}/`, question),
axios.put(`/voting/question/${questionId}`, question),
deleteQuestion: (questionId: number) =>
axios.delete(`/voting/question/${questionId}/`),
axios.delete(`/voting/question/${questionId}`),

//VOTING API
//Bulk Operations
Expand Down Expand Up @@ -49,12 +49,12 @@ const votingApi = {
}),

//Individual Operations
getVoting: (votingId: number) => axios.get(`/votings/${votingId}/`),
getVoting: (votingId: number) => axios.get(`/votings/${votingId}`),
createVoting: (voting: votingType.VotingFormFields) =>
axios.post("/votings", voting),
updateVoting: (voting: votingType.VotingFormFields, votingId: number) =>
axios.put(`/votings/${votingId}/`, voting),
deleteVoting: (votingId: number) => axios.delete(`/votings/${votingId}/`),
axios.put(`/votings/${votingId}`, voting),
deleteVoting: (votingId: number) => axios.delete(`/votings/${votingId}`),
};

export default votingApi;

0 comments on commit 8edc9a5

Please sign in to comment.