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.
1 parent acc385a commit 61ea0f3Copy full SHA for 61ea0f3
routes/api.ts
@@ -1,9 +1,9 @@
1
import { route } from '@stacksjs/router'
2
3
-route.get('/api', () => 'hello world 1')
4
-route.get('/api/', () => 'hello world 2')
5
-route.get('/api/welcome', () => 'hello world 3')
6
-route.get('/api/welcome', () => 'hello world 4')
+route.get('/api', () => 'hello world 1') // stacksjs.org/api
+route.get('/api/', () => 'hello world 2') // stacksjs.org/api/
+route.get('/api/welcome', () => 'hello world 3') // stacksjs.org/api/welcome
+route.get('/api/welcome/', () => 'hello world 4') // stacksjs.org/api/welcome/
7
route.get('/api/health', () => 'healthy')
8
9
// route.group({ prefix: '/users' }, () => {
0 commit comments