添加博客模块

This commit is contained in:
2025-05-07 18:33:13 +08:00
parent 9e09a7bc72
commit 464931cc98
7 changed files with 121 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
import { Controller, Get } from '@nestjs/common';
import { BlogService } from './blog.service';
@Controller('blog')
export class BlogController {
constructor(
private readonly blogService: BlogService,
) { }
@Get()
getBlogs() {
return this.blogService.list();
}
}