Commit 8227baf4 authored by Miguel Ángel Durán's avatar Miguel Ángel Durán Committed by Joe Haddad

docs(api-routes): fix micro-cors example (#9184)

The correct option to use with `micro-cors` package is `allowMethods` instead `allowedMethods`. This PR fixes the example.
parent e42fdd82
......@@ -1240,7 +1240,7 @@ Then, import `micro-cors` and [configure it](https://github.com/possibilities/mi
import Cors from 'micro-cors'
const cors = Cors({
allowedMethods: ['GET', 'HEAD'],
allowMethods: ['GET', 'HEAD'],
})
function Endpoint(req, res) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment