use customRequest

This commit is contained in:
SrGooglo 2023-03-14 20:40:29 +00:00
parent 2ed5db8735
commit da9f7b5415

View File

@ -29,10 +29,14 @@ export default class AuthModel {
static async register(payload) { static async register(payload) {
const { username, password, email } = payload const { username, password, email } = payload
const response = await User.bridge.post.register(undefined, { const response = await app.cores.api.customRequest({
method: "post",
url: "/auth/register",
data: {
username, username,
password, password,
email, email,
}
}).catch((error) => { }).catch((error) => {
console.error(error) console.error(error)