Wasp API Route Not Found (404) for Langflow Integration in GitHub Codespaces
Wasp API Route Not Found (404) for Langflow Integration in GitHub Codespaces
Hey everyone,
I'm working on integrating Langflow into my Wasp (v0.16.0) project inside a GitHub Codespace, but I'm running into a 404 Not Found issue when my frontend tries to call the API route.
---
Setup & What I'm Trying to Do
- Using Wasp (v0.16.0).
- Running the app inside a GitHub Codespace.
- Trying to create an API endpoint (
/api/runLangflow) that my frontend can call to interact with Langflow.
What I’ve Done So Far
Defined the API route in main.wasp:
Created the function in operations.ts:
###3
/api/runLangflow:Issues
/api/runLangflowdoesn't appear inwasp info, meaning it’s not being registered.- Running
tocurl/api/runLangflowalso returns a 404 Not Found.
- Is Wasp not recognizing the API definition?
- Do I need to expose the API differently in GitHub Codespaces?
- Does Wasp handle API routes differently in Codespaces?