generated from template/router-template
init first
This commit is contained in:
21
backend/src/test/daily.ts
Normal file
21
backend/src/test/daily.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { app } from './common.ts'
|
||||
|
||||
// delete
|
||||
|
||||
// app.call({
|
||||
// path: 'daily',
|
||||
// key: 'delete',
|
||||
// payload: {
|
||||
// id: 'fqwoaqawhkfy'
|
||||
// }
|
||||
// }).then(res => {
|
||||
// console.log('删除结果:', res.body)
|
||||
// })
|
||||
|
||||
// randoms
|
||||
app.call({
|
||||
path: 'daily',
|
||||
key: 'random'
|
||||
}).then((res) => {
|
||||
console.log('Daily Questions:', res.body);
|
||||
})
|
||||
Reference in New Issue
Block a user