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

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

Open
rhberro opened this issue Jan 18, 2021 · 0 comments
Open
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@rhberro
Copy link
Owner

rhberro commented Jan 18, 2021

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 rhberro added bug Something isn't working enhancement New feature or request good first issue Good for newcomers labels Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant