| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | 
							- 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 ({ ptId, laporanId }) => {
 
- 	try {
 
- 		let url = `/log/public?ptId=${ptId}&laporan=${laporanId}`;
 
- 		const res = await get(url);
 
- 		return res.data;
 
- 	} catch (error) {
 
- 		console.log("error", error);
 
- 		return false;
 
- 	}
 
- };
 
 
  |