filter & storage

This commit is contained in:
probdg
2024-02-01 22:21:41 +07:00
parent f5fe6ae0e6
commit a278bb353c
13 changed files with 349 additions and 174 deletions

13
src/utils/network.ts Normal file
View 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 };