Skip to content

Routes with custom methods are broken #803

@facundo-villa

Description

@facundo-villa

What version of Elysia is running?

1.1.9

What platform is your computer?

Linux 6.9.3-76060903-generic x86_64 x86_64

What steps can reproduce the bug?

Create a route with a GET method and another with the same path but a custom method.
The route with the GET method will get called instead of the custom one.

In previous Elysia versions this bug was already present but the response would just be an error.

What is the expected behavior?

I expect the route handler with the custom method to be called when the HTTP request specifies said method.

What do you see instead?

The route with the GET method is called called instead of the custom one.

Additional information

Routes with custom methods also do not appear in the generated API docs.

Have you try removing the node_modules and bun.lockb and try again yet?

Yes

Metadata

Metadata

Assignees

Labels

blockingBlocked by other issuesbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions