feat: init

This commit is contained in:
陶林 2023-10-01 01:37:49 +08:00
parent b15f09c27c
commit 1a1cd5d8d3
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,5 @@
http://localhost:3000/api/users

7
mock/api.ts Normal file
View File

@ -0,0 +1,7 @@
export default {
// 支持值为 Object 和 Array
'GET /api/users': { users: [1, 2] },
// GET 可忽略
'/api/users/1': { id: 1 },
}