aswi2023one-team-to-rule-them-all-gitlab/src/api/authservice.ts @ 5c86e446
1 |
import { axiosInstance } from "./api" |
---|---|
2 |
|
3 |
export const login = (username: string, password: string) => { |
4 |
axiosInstance.post( |
5 |
"/api/login", |
6 |
{
|
7 |
username: username, |
8 |
password: password |
9 |
}
|
10 |
).then((response) => { |
11 |
console.log(response) |
12 |
})
|
13 |
}
|