We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec89504 + 37b8927 commit e00f908Copy full SHA for e00f908
docs/essential/route.md
@@ -19,26 +19,23 @@ import Playground from '../../components/nearl/playground.vue'
19
import { Elysia } from 'elysia'
20
21
const demo1 = new Elysia()
22
- .get('/', () => 'hello')
23
- .post('/hi', () => 'hi')
+ .get('/', () => 'Landing')
+ .get('/hello', () => 'Hi')
24
25
const demo2 = new Elysia()
26
.get('/', () => 'hello')
27
- .post('/hi', () => 'world')
+ .post('/hi', () => 'hi')
28
29
const demo3 = new Elysia()
30
.get('/get', () => 'hello')
31
.post('/post', () => 'hi')
32
.route('M-SEARCH', '/m-search', () => 'connect')
33
34
const demo4 = new Elysia()
35
36
- .post('/', () => 'hello')
37
- .delete('/', () => 'hello')
+ .all('/', () => 'hi')
38
39
const demo5 = new Elysia()
40
41
42
.get('/hi', ({ error }) => error(404))
43
</script>
44
0 commit comments