Skip to content

Commit 1a08f96

Browse files
committed
chore: wip
1 parent bbd7119 commit 1a08f96

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

routes/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { route } from '@stacksjs/router'
22

3+
// TODO: abstract the api prefix out of here
34
route.get('/api', () => 'hello world 1') // stacksjs.org/api
45
route.get('/api/', () => 'hello world 2') // stacksjs.org/api/
56
route.get('/api/welcome', () => 'hello world 3') // stacksjs.org/api/welcome

routes/user.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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

storage/framework/api/dev.ts

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

storage/framework/core/server/src/api.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)