Matt LuoM
Convex Community2y ago
10 replies
Matt Luo

Is all code for HTTP actions organized into one big http.ts file?

I am trying to create a new HTTP action about US presidents. I created a file named presidents.ts with the HTTP action logic inside my /convex directory. But this HTTP action is never deploying: I don't see the action in my Functions console, and my front end gets a fetch error.

If I'm interpreting these docs literally:
https://docs.convex.dev/functions/http-actions
it would seem that all HTTP actions are defined in a single file http.ts. Is that truly correct?
Was this page helpful?