Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#562 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, react
领域
api

调研方向

首先阅读 BoardContext.jsx,并找出其中用于任务、代码片段和全部登出的 API 调用。更新过时的路径,使其与登录和注册中已使用的 /api/v1 前缀一致;完成的标准是创建、加载和更新任务不再返回 404,并且创建的任务在刷新后仍然存在。

由索引模型根据 Issue 内容生成。

描述

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?

主要语言
JavaScript
星标
39
派生
105
平均合并
1 天 12 小时
30 天内合并 PR
27

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anoopcodehack/DevBoard 的其他 Issue

查看 anoopcodehack/DevBoard 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。