Fix backend url conf
This commit is contained in:
1 parent
6723d42a5f
commit
1c10240b8d
19 files changed
+20
-20
No files matched your search
@@ -5,7 +5,7 @@ export default async function assign(taskId) {
|
||||
|
||||
try {
|
||||
const res = await fetch(
|
||||
`http://${import.meta.env.VITE_API_URL}/api/events/task/assign`,
|
||||
`${import.meta.env.VITE_API_URL}/api/events/task/assign`,
|
||||
{
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
@@ -34,4 +34,4 @@ export default async function assign(taskId) {
|
||||
message: "Network error",
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
export default async function isAssigned(taskId) {
|
||||
try {
|
||||
const res = await fetch(
|
||||
`http://${import.meta.env.VITE_API_URL}/api/events/tasks/${taskId}/assigned`,
|
||||
`${import.meta.env.VITE_API_URL}/api/events/tasks/${taskId}/assigned`,
|
||||
{
|
||||
method: 'GET',
|
||||
credentials: 'include',
|
||||
|
||||
@@ -5,7 +5,7 @@ export default async function unAssign(taskId) {
|
||||
|
||||
try {
|
||||
const res = await fetch(
|
||||
`http://${import.meta.env.VITE_API_URL}/api/events/task/unassign`,
|
||||
`${import.meta.env.VITE_API_URL}/api/events/task/unassign`,
|
||||
{
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
|
||||
Reference in new issue
Block a user