| 123456789101112131415161718192021222324252627282930313233343536373839404142 | import { get } from "../config/request";import axios from "@/config/axios";export const getLog = async (token, ptId) => {	try {		let url = `/pemantauan/${ptId}`;		const res = await axios.get(url, {			headers: {				Authorization: token,			},		});		return res.data;	} catch (error) {		console.log("error", error);		return false;	}};export const getLogPT = async (token) => {	try {		let url = `/pemantauan/pt`;		const res = await axios.get(url, {			headers: {				Authorization: token,			},		});		return res.data;	} catch (error) {		console.log("error", error);		return false;	}};export const getLogPublic = async ({ no_hp, no_laporan }) => {	try {		const res = await axios.get(`/public/pemantauan?no_hp=${no_hp}&no_laporan=${no_laporan}`);		return res.data;	} catch (error) {		console.log("error", error);		return false;	}};
 |