feature(Resume Controller): add route to get Resume without incrementing view count

This commit is contained in:
y8a5y
2025-12-21 14:35:24 +01:00
parent 589bd2c162
commit 62c09ea142

View File

@@ -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(