summaryrefslogtreecommitdiffstats
path: root/src/services/AuthService.js
blob: 626a8fb7f9a23845e486ba96ad3d04d44de29b14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import axios from "axios";

const url = 'http://localhost:8000/api/auth/'

export default {
    async login(data) {
        return await axios
        .post(url+'login/', data)
        .then(res => res.data)
    },

    async register(data) { 
        return await axios
        .post(url+'register/', data)
        .then(res => res.data)
    }
}