# Not been able to add POST api method using Flask

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnot-been-able-to-add-post-api-method-using-flask%2F158508%3E%5C
**Category:** Beginners\
**Created:** [June 8, 2025, 9:49pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnot-been-able-to-add-post-api-method-using-flask%2F158508 "2025-06-08T21:49:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 9, 2025, 2:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnot-been-able-to-add-post-api-method-using-flask%2F158508%2F2 "2025-06-09T02:41:46Z")

</div>

Hmm… Like this issue?

> [@FastAPI Routing Issue in Hugging Face Spaces](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffastapi-routing-issue-in-hugging-face-spaces%2F54962)%3A
>
> Hello everyone, I’ve deployed a FastAPI application on Hugging Face Spaces. Everything seems to be running smoothly, and there are no errors in the logs. However, when I try to access my endpoints via a browser or tools like Postman, I’m getting a “404 error” or a “Cannot POST” error. Here’s a brief overview of my setup: I have a FastAPI route defined as @app.get("/check\_request") and another one as @app.post("/recommend"). My Dockerfile specifies the CMD as CMD ["uvicorn", "app:app", "--hos…

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnot-been-able-to-add-post-api-method-using-flask%2F158508)._
