Skip to content

Commit b3037cb

Browse files
committed
chore: wip
1 parent 5866e40 commit b3037cb

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

app/Actions/BuddyAction.ts renamed to app/Actions/Buddy/CommandsAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Action } from '@stacksjs/actions'
22

33
export default new Action({
4-
name: 'Buddy Info',
5-
description: 'This command displays the buddy info.',
6-
path: 'buddy', // turns into `APP_URL/api/buddy`
4+
name: 'Buddy Command Info',
5+
description: 'This command displays the available buddy command information.',
6+
path: 'buddy/commands', // turns into `APP_URL/api/buddy/commands`
77

88
handle() {
99
return {

app/Actions/Buddy/VersionsAction.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Action } from '@stacksjs/actions'
2+
3+
export default new Action({
4+
name: 'Buddy Versions',
5+
description: 'This command displays the buddy version.',
6+
path: 'buddy/versions', // turns into `APP_URL/api/buddy/versions`
7+
8+
handle() {
9+
return {
10+
versions: [
11+
'1.0',
12+
],
13+
}
14+
},
15+
})

0 commit comments

Comments
 (0)