1 |
7e4b4e6a
|
mschwob
|
import { axiosInstance } from "./api"
|
2 |
|
|
|
3 |
5ed9692c
|
Schwobik
|
export const loginRequest = async (username: string, password: string) => {
|
4 |
|
|
return await axiosInstance.post(
|
5 |
ddc84a2f
|
Schwobik
|
"/login",
|
6 |
7e4b4e6a
|
mschwob
|
{
|
7 |
|
|
username: username,
|
8 |
|
|
password: password
|
9 |
|
|
}
|
10 |
5ed9692c
|
Schwobik
|
)
|
11 |
0efa284e
|
Fantič
|
}
|
12 |
|
|
|
13 |
|
|
export const isAuthRequest = async () => {
|
14 |
|
|
return await axiosInstance.get(
|
15 |
06808454
|
Schwobik
|
"/isauth"
|
16 |
|
|
)
|
17 |
|
|
}
|
18 |
|
|
|
19 |
|
|
export const logoutRequest = async () => {
|
20 |
|
|
return await axiosInstance.get(
|
21 |
|
|
"/logout"
|
22 |
0efa284e
|
Fantič
|
)
|
23 |
|
|
}
|
24 |
|
|
|