filter & storage
This commit is contained in:
13
src/utils/network.ts
Normal file
13
src/utils/network.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import axios from "axios";
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: 'http://localhost:8443'
|
||||
});
|
||||
|
||||
|
||||
const getUid = async () => await instance.get('/uid');
|
||||
const getUp3 = async (
|
||||
uid: number,
|
||||
) => await instance.get('/up3?uid=' + uid);
|
||||
const getPosko = async (uppp: number) => await instance.get('/posko?up3=' + uppp);
|
||||
export { getUid, getUp3, getPosko };
|
Reference in New Issue
Block a user