Can't get apiNamespace working in OpenSaas
Trying to set up API namespace, but
• curl returns the landing page instead of API response.
• How to get access to entity inside middleware?
curl -v http://localhost:3000/api/ returns landing page HTML instead of hitting my API.main.waspmiddleware (apiKeyAuth.ts)curl responseIssues:
• 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?