Designing Public vs Private Routes
Separate public and private paths clearly so your API contract stays understandable for clients and maintainers. Group public routes (health, docs, login)
When to use this
Key concepts
Repo-grounded example
{
"authorizer": {
"type": "jwt",
"secret": "$env.JWT_SECRET",
"algorithm": "HS256",
"issuer": "https://issuer.example.com",
"audience": "api-audience"
},
"paths": [
{
"method": "GET",
"path": "/private",
"auth": true,
"response": { "private": true }
}
]
}Troubleshooting
Related docs
Last updated