web-humas-fe/service/activity-log.ts

16 lines
471 B
TypeScript
Raw Normal View History

2025-02-07 09:37:39 +00:00
import { PaginationRequest } from "@/types/globals";
2025-03-18 08:30:18 +00:00
import { httpGet, httpPost, httpPut } from "./http-config/axios-base-service";
2025-02-07 09:37:39 +00:00
export async function saveActivity(data: any, token?: string) {
const headers = token
? {
"content-type": "application/json",
Authorization: `Bearer ${token}`,
}
: {
"content-type": "application/json",
};
const pathUrl = `/activity-logs`;
return await httpPost(pathUrl, headers, data);
}