HTTP Path Suffix Not Working?
Now it is almost midnight for me so I could have missed something, but I'm not able to get HTTP routes like
https:CONVEX_URL.site/route/$params
Am i doing something wrong? I get the Response No matching routes found
The docs: https://docs.convex.dev/functions/http-actions#defining-http-actions
My suggestion would be for an explicit path param definition like https://hono.dev/docs/api/routing#path-parameterRouting - Hono
Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!
5 Replies
I am seeing it deployed
In your code you still have path: , change it to pathPrefix:
+1 to using pathPrefix. And if you want explicit path params, use Hono https://stack.convex.dev/hono-with-convex
Advanced HTTP Endpoints: Convex ❤️ Hono
Adding advanced HTTP Endpoint functionality by extending Convex with Hono.
Ahhhh dang. And that’s why sleep is important lol . Totally missed the property key. Thanks @lee as well. Good to know about hono integration
Curious if it’s possible to use the hono rpc client with honoconvex as well
if you're looking to use structured RPCs, we recommend using convex queries/mutations/actions and some convex client (like https://docs.convex.dev/api/classes/browser.ConvexHttpClient ) which will give you typesafety, argument validation, etc.
I'm not familiar with the hono rpc client, but i don't see why it wouldn't work
Class: ConvexHttpClient | Convex Developer Hub
browser.ConvexHttpClient