the-fake-backend
the-fake-backend copied to clipboard
Allow using words written in uppercase when describing method types
I should be able write routes using words in uppercase when describing the route's methods, something like:
...
{
path: '/example',
methods: [
{
type: 'GET',
},
],
},
...
In the current version, when I do this the following error occurs:
TypeError: y[n] is not a function
at C (/home/rafaelberro/Projects/the-fake-backend/build/index.js:1:15624)
at Array.forEach (<anonymous>)
at M (/home/rafaelberro/Projects/the-fake-backend/build/index.js:1:15684)
at Array.forEach (<anonymous>)```