Skip to content

Commit 0b057b5

Browse files
committed
chore: wip
1 parent ebbfcc6 commit 0b057b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routes/api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
// 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')
28

39
// route.group({ prefix: '/users' }, () => {
410
// route.before(async (params) => {

0 commit comments

Comments
 (0)