mirror of
https://github.com/zebrajr/Reactive-Resume.git
synced 2026-01-15 12:15:43 +00:00
feature(Resume Controller): add route to get Resume without incrementing view count
This commit is contained in:
@@ -92,6 +92,20 @@ export class ResumeController {
|
||||
return this.resumeService.findOneStatistics(id);
|
||||
}
|
||||
|
||||
@Get("/public/:username/:slug/stealthily")
|
||||
@UseGuards(OptionalGuard)
|
||||
async findOneByUsernameSlugStealthily(
|
||||
@Param("username") username: string,
|
||||
@Param("slug") slug: string,
|
||||
) {
|
||||
const resume = await this.resumeService.findOneByUsernameSlug(username, slug);
|
||||
|
||||
// Hide private notes from public resume API responses
|
||||
set(resume.data as ResumeData, "metadata.notes", undefined);
|
||||
|
||||
return resume;
|
||||
}
|
||||
|
||||
@Get("/public/:username/:slug")
|
||||
@UseGuards(OptionalGuard)
|
||||
async findOneByUsernameSlug(
|
||||
|
||||
Reference in New Issue
Block a user