File tree Expand file tree Collapse file tree 6 files changed +72
-0
lines changed Expand file tree Collapse file tree 6 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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
+ } )
You can’t perform that action at this time.
0 commit comments