Skip to content

Commit 384808e

Browse files
committed
chore: wip
1 parent 1b6fb50 commit 384808e

File tree

6 files changed

+72
-0
lines changed

6 files changed

+72
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Action as ActionModel } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetActionCount',
6+
description: 'Gets the total number of actions.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return ActionModel.count()
11+
},
12+
})

app/Actions/Dashboard/GetActions.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Action as ActionModel } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetActions',
6+
description: 'Gets your actions.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return ActionModel.all()
11+
},
12+
})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Library } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetAverageReleaseTime',
6+
description: 'Gets the average release time of your library.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Library.averageReleaseTime()
11+
},
12+
})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Request } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetRequestCount',
6+
description: 'Gets the total number of requests.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Request.count()
11+
},
12+
})
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Library } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetAverageReleaseTime',
6+
description: 'Gets the average release time of your library.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Library.averageReleaseTime()
11+
},
12+
})

app/Actions/Dashboard/GetRequests.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Action } from '@stacksjs/actions'
2+
// import { Request } from '@stacksjs/orm'
3+
4+
export default new Action({
5+
name: 'GetRequests',
6+
description: 'Gets your requests.',
7+
apiResponse: true,
8+
9+
async handle() {
10+
// return Request.all()
11+
},
12+
})

0 commit comments

Comments
 (0)