添加博客模块
This commit is contained in:
15
tone-page-server/src/blog/blog.controller.ts
Normal file
15
tone-page-server/src/blog/blog.controller.ts
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user