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 ebbfcc6 commit 0b057b5Copy full SHA for 0b057b5
routes/api.ts
@@ -1,4 +1,10 @@
1
// the only difference between web and api routes is that the API middleware is associated by default
2
+import { route } from '@stacksjs/router'
3
+
4
+route.get('/', () => 'hello world 1')
5
+route.get('/api/', () => 'hello world 2')
6
+route.get('/api/welcome', () => 'hello world 3')
7
+route.get('/welcome', () => 'hello world 4')
8
9
// route.group({ prefix: '/users' }, () => {
10
// route.before(async (params) => {
0 commit comments