实现访问博客计数

This commit is contained in:
2025-05-18 16:01:12 +08:00
parent 02a73a5e33
commit 6f172c6cb6
2 changed files with 5 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ export class BlogController {
const blogDataRes = await fetch(`${blog.contentUrl}`);
const blogContent = await blogDataRes.text();
await this.blogService.incrementViewCount(id);
return {
id: blog.id,
title: blog.title,