- admin api 改为 admins 前缀
parent
7452ec68ae
commit
eba89f3113
|
@ -74,7 +74,7 @@ export default {
|
|||
address: 'Sidney No. 1 Lake Park',
|
||||
},
|
||||
],
|
||||
'POST /admin-api/admin/passport/login': (req, res) => {
|
||||
'POST /admin-api/admins/passport/login': (req, res) => {
|
||||
const { password, username } = req.body;
|
||||
if (password === 'admin' && username === 'admin') {
|
||||
res.send({
|
||||
|
|
|
@ -104,14 +104,14 @@ export async function updateFakeList(params) {
|
|||
}
|
||||
|
||||
export async function fakeAccountLogin(params) {
|
||||
return request(`/admin-api/admin/passport/login?${stringify(params)}`, {
|
||||
return request(`/admin-api/admins/passport/login?${stringify(params)}`, {
|
||||
method: 'POST',
|
||||
body: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function fakeRegister(params) {
|
||||
return request(`/admin-api/admin/passport/login?${stringify(params)}`, {
|
||||
return request(`/admin-api/admins/passport/login?${stringify(params)}`, {
|
||||
method: 'POST',
|
||||
body: params,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue