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

Essential Route Docs | demo inconsistencies #308

Open
Dovonun opened this issue Apr 5, 2024 · 0 comments
Open

Essential Route Docs | demo inconsistencies #308

Dovonun opened this issue Apr 5, 2024 · 0 comments

Comments

@Dovonun
Copy link

Dovonun commented Apr 5, 2024

What is the type of issue?

Documentation is incorrect, Documentation is confusing

What is the issue?

Route demos have inconsistencies

The demos at https://elysiajs.com/essential/route.html#route have some things that need to be corrected.

first demo

The "/" route" responds "hello", but the code shows "Landing" as the response.
The example code defines a get request for the "/hello" route.
In the demo, the request is a post on route "localhost/hi".

second demo

According to the code example, the post route should return 'hi', but the playground returns "world".

4th demo(all('/')

It should return "hi" for all routes, but in the playground, all endpoints are implemented independently with a "hello" response.

404 demo

The demo has a working post route, which is not defined in the example, and the "not found" route does not return the specified text.

Where did you find it?

https://elysiajs.com/essential/route.html#route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant