- admin api 改为 admins 前缀

pull/1/head
sin 2019-03-10 15:22:04 +08:00
parent 7452ec68ae
commit eba89f3113
2 changed files with 3 additions and 3 deletions

View File

@ -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({

View File

@ -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,
});