17 lines
607 B
TypeScript
17 lines
607 B
TypeScript
import axios from "axios";
|
|
|
|
const instance = axios.create({
|
|
baseURL: 'http://localhost:8443'
|
|
});
|
|
|
|
|
|
const getUid = async () => await instance.get('/uid');
|
|
const getMedia = async() => await instance.get('/media');
|
|
const getJenisTransaksi = async() => await instance.get('/jenisTransaksi');
|
|
const getUp3 = async (
|
|
uid: number,
|
|
) => await instance.get('/up3?uid=' + uid);
|
|
const getUlp = async (up3: number) => await instance.get('/ulp?up3=' + up3);
|
|
const getPosko = async (uppp: number) => await instance.get('/posko?up3=' + uppp);
|
|
export { getUid, getUp3, getPosko,getUlp,getMedia,getJenisTransaksi };
|