first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import axiosClient from ".";
|
||||
|
||||
const authServices = {
|
||||
login: (
|
||||
data: {
|
||||
username: string;
|
||||
password: string;
|
||||
ip: string;
|
||||
address: string;
|
||||
type: number;
|
||||
},
|
||||
tokenAxios?: any,
|
||||
) => {
|
||||
return axiosClient.post(`/Auth/login`, data, {
|
||||
cancelToken: tokenAxios,
|
||||
});
|
||||
},
|
||||
logout: (data: void, tokenAxios?: any) => {
|
||||
return axiosClient.post(`/Auth/logout`, data, {
|
||||
cancelToken: tokenAxios,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export default authServices;
|
||||
Reference in New Issue
Block a user