Projekt

Obecné

Profil

Stáhnout (377 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { axiosInstance } from "./api"
2

    
3
export const loginRequest = async (username: string, password: string) => {
4
    return await axiosInstance.post(
5
        "/api/login",
6
        {
7
            username: username,
8
            password: password
9
        }
10
    )
11
}
12

    
13
export const isAuthRequest = async () => {
14
    return await axiosInstance.get(
15
        "/api/isauth"
16
    )
17
}
18

    
19

    
(2-2/5)