Skip to content

Allow using words written in uppercase when describing method types #64

@rhberro

Description

@rhberro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions