Skip to content
Snippets Groups Projects
Commit d1e321f0 authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Resolve "Remove proxy"

parent 5ee7eee1
No related branches found
No related tags found
1 merge request!90Resolve "Remove proxy"
Pipeline #42018 passed with warnings
......@@ -37,7 +37,7 @@ const TextComponentEdit = ({ component }: ImageComponentProps) => {
setTimerHandle(
window.setTimeout(async () => {
console.log('Content was updated on server. id: ', component.id)
await axios.put(`/competitions/${competitionId}/slides/${activeSlideId}/components/${component.id}`, {
await axios.put(`/api/competitions/${competitionId}/slides/${activeSlideId}/components/${component.id}`, {
data: { ...component.data, text: a },
})
dispatch(getEditorCompetition(id))
......@@ -46,7 +46,7 @@ const TextComponentEdit = ({ component }: ImageComponentProps) => {
}
const handleDeleteText = async (componentId: number) => {
await axios.delete(`/competitions/${id}/slides/${activeSlideId}/components/${componentId}`)
await axios.delete(`/api/competitions/${id}/slides/${activeSlideId}/components/${componentId}`)
dispatch(getEditorCompetition(id))
}
......
......@@ -16,7 +16,7 @@ export const CheckAuthentication = async () => {
axios.defaults.headers.common['Authorization'] = authToken
store.dispatch({ type: Types.LOADING_USER })
await axios
.get('/users')
.get('/api/users')
.then((res) => {
store.dispatch({ type: Types.SET_AUTHENTICATED })
store.dispatch({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment