Javascript – How can I get in my API the slug passed (slug=${params.slug})
How can I get in my API the slug passed (slug=${params.slug},`) I'm working with vercel AI SDK const { messages, input, handleInputChange, handleSubmit, isLoading, error } = useChat({ api: `/api/conversation?slug=${params.slug}`, }); My API / Not getting the slug: export async…