Frontend test
This commit is contained in:
10
quibot-web/server/api/motor/step.post.ts
Normal file
10
quibot-web/server/api/motor/step.post.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export default defineEventHandler(async () => {
|
||||
const config = useRuntimeConfig()
|
||||
|
||||
return await $fetch(`${config.quibotBaseUrl}/motor/step`, {
|
||||
method: 'POST',
|
||||
query: {
|
||||
token: config.quibotToken,
|
||||
},
|
||||
})
|
||||
})
|
||||
10
quibot-web/server/api/motor/stop.post.ts
Normal file
10
quibot-web/server/api/motor/stop.post.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export default defineEventHandler(async () => {
|
||||
const config = useRuntimeConfig()
|
||||
|
||||
return await $fetch(`${config.quibotBaseUrl}/motor/stop`, {
|
||||
method: 'POST',
|
||||
query: {
|
||||
token: config.quibotToken,
|
||||
},
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user