Skip to content

Fix: CreatedAtAction in ProjectsController points to wrong route #17

Description

@manucompiles

TL;DR

After creating a project, the API returns a Location header pointing to the full project list, not the new project.

Current State

POST /api/projects returns 201 Created with a Location header pointing to GET /api/projects (the list endpoint).

Desired State

The Location header should point to a GET /api/projects/{id} route for the newly created project, matching the pattern already used in TasksController.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-lowNice to have, low urgency

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions