docs
This commit is contained in:
6
example/built-in/mock/mocks/five.js
Normal file
6
example/built-in/mock/mocks/five.js
Normal file
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
name: '/five/:id?name=:name',
|
||||
response: function (ctx, id) {
|
||||
ctx.body = `<h1>id: ${id}, name: ${ctx.query.name}</h1>`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user