Alex
WWasp
•Created by Alex on 2/5/2025 in #🙋questions
Can't get apiNamespace working in OpenSaas
Trying to set up API namespace, but
curl -v http://localhost:3000/api/
returns landing page HTML instead of hitting my API.
main.wasp
middleware (apiKeyAuth.ts)
curl response
Issues:
• Middleware isn’t logging, so it might not be running.
• curl returns the landing page instead of API response.
Questions:
• Any ideas why it's not working?
• How to get access to entity inside middleware?6 replies