Skip to content

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

Description

@GOPIKA-BTECH23

What I expected
After registering and logging in, creating a task saves it and it persists after a refresh.

What actually happened
The "New Task" modal stays on "Saving..." and the task is never created. Server logs show:
GET /api/tasks 404
POST /api/tasks 404

Cause
The server mounts routes under API_VERSION ("/api/v1"), e.g. /api/v1/tasks, but BoardContext.jsx still calls the old paths: /api/tasks (get, post, put, delete), /api/tasks/:id/snippets and /api/auth/logout-all.
Login and register already use /api/v1/... and work.

Steps to reproduce

  1. Run the app, register a new account
  2. Click "+ Add card" and save a task
  3. The modal hangs on "Saving..."; the server logs 404

Proposed fix
Update the client API paths in BoardContext.jsx to use /api/v1. I'd like to work on this. Could you assign it to me?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions