Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API routes documentation to correctly mention middlewares #11083

Merged
merged 1 commit into from Mar 17, 2020

Commits on Mar 15, 2020

  1. Update API routes documentation to correctly mention middlewares

    Previously we said "Micro middlewares" but Next.js does not use micro. This would confuse users as both Next.js and Micro were created by ZEIT and Next.js API routes have different semantics than Micro handlers.
    
    I've updated the docs to show how to use the `cors` middleware that's generally used in express apps.
    timneutkens committed Mar 15, 2020
    Copy the full SHA
    7f89a9d View commit details
    Browse the repository at this point in the history