the-fake-backend icon indicating copy to clipboard operation
the-fake-backend copied to clipboard

Allow using words written in uppercase when describing method types

Open rhberro opened this issue 3 years ago • 0 comments

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>)```

rhberro avatar Jan 18 '21 16:01 rhberro