mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
15 lines
420 B
TypeScript
15 lines
420 B
TypeScript
import axios from './axios';
|
|
|
|
export type PrintResumeAsPdfParams = {
|
|
username: string;
|
|
slug: string;
|
|
lastUpdated: string;
|
|
};
|
|
|
|
export const printResumeAsPdf = (printResumeAsPdfParams: PrintResumeAsPdfParams): Promise<string> =>
|
|
axios
|
|
.get(
|
|
`/printer/${printResumeAsPdfParams.username}/${printResumeAsPdfParams.slug}?lastUpdated=${printResumeAsPdfParams.lastUpdated}`
|
|
)
|
|
.then((res) => res.data);
|