mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 10:11:31 +10:00
🚀 release v3.0.0
This commit is contained in:
13
server/src/printer/printer.controller.ts
Normal file
13
server/src/printer/printer.controller.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { Controller, Get, Param } from '@nestjs/common';
|
||||
|
||||
import { PrinterService } from './printer.service';
|
||||
|
||||
@Controller('printer')
|
||||
export class PrinterController {
|
||||
constructor(private readonly printerService: PrinterService) {}
|
||||
|
||||
@Get('/:username/:slug')
|
||||
printAsPdf(@Param('username') username: string, @Param('slug') slug: string): Promise<string> {
|
||||
return this.printerService.printAsPdf(username, slug);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user