File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { route } from '@stacksjs/router'
2
2
3
+ // TODO: abstract the api prefix out of here
3
4
route . get ( '/api' , ( ) => 'hello world 1' ) // stacksjs.org/api
4
5
route . get ( '/api/' , ( ) => 'hello world 2' ) // stacksjs.org/api/
5
6
route . get ( '/api/welcome' , ( ) => 'hello world 3' ) // stacksjs.org/api/welcome
Original file line number Diff line number Diff line change
1
+ import { route } from '@stacksjs/router'
2
+
3
+ route . get ( '/' , ( ) => 'user 1' ) // stacksjs.org/api/user
4
+ route . get ( '/account' , ( ) => 'user account' ) // stacksjs.org/api/user/account
Original file line number Diff line number Diff line change
1
+ import { serve } from '@stacksjs/router'
2
+
3
+ serve ( {
4
+ port : 3999 ,
5
+ } )
6
+
7
+ // import { runAction } from '@stacksjs/actions'
8
+ // import { Action } from '@stacksjs/enums'
9
+ //
10
+ // await runAction(Action.DevApi)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments