Skip to content

Fix 307 Redirects #153

@naasanov

Description

@naasanov

Motivation

Currently when the frontend gets resources from the backend, it targets routes like GET /parties, while FastAPI expects routes like GET /parties/ due to base routes being defined like .get("/"). FastAPI accounts for this by automatically redirecting requests to the correct route with a 307 status code, but this bogs down the network tab with redundant info.

Deliverables

  • Change any occurrence of get/put/post/etc with the structure of .get("/") to same structure as .get("") to prevent the redirect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions