Skip to content

chore: fetch a single task from the v1 API path - #591

Merged
anoopcodehack merged 1 commit into
anoopcodehack:mainfrom
Mario-Mohar:fix/task-fetch-api-path
Oct 9, 2026
Merged

anoopcodehack merged 1 commit into
anoopcodehack:mainfrom
Mario-Mohar:fix/task-fetch-api-path

Conversation

@Mario-Mohar

Copy link
Copy Markdown
Contributor

Closes #562

Most of #562 was already fixed: the client moved to /api/v1, and the server keeps /api/tasks as an alias, so nothing returns 404 anymore. One call was still on the old path: viewTask in BoardContext.jsx fetched a single task from /api/tasks/:id. This moves it to /api/v1/tasks/:id like everything else, so no client code depends on the alias anymore.

Tested locally against a real MongoDB: both paths return 200 for an existing task, and the client builds.

@anoopcodehack
anoopcodehack merged commit 8a11209 into anoopcodehack:main Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Task create/load/update fail with 404 because client uses /api/tasks instead of /api/v1/tasks

2 participants