Backend API
Backend API
// auth.js
import http from '@/http'
export default {
url: '/api/auth',
login(credentials) {
return http.post(this.url + '/login', credentials)
}
}
// auth.js
import http from '@/http'
export default {
url: '/api/auth',
login(credentials) {
return http.post(this.url + '/login', credentials)
}
}