feat: complete app democking, fix types, add blogs api
This commit is contained in:
1 parent
6027e635db
commit
945c007a79
25 files changed
+557
-56
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { Controller, Get, Param } from '@nestjs/common';
|
||||
import { BlogsService } from './blogs.service';
|
||||
|
||||
@Controller('blogs')
|
||||
export class BlogsController {
|
||||
constructor(private readonly blogsService: BlogsService) {}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.blogsService.findAll();
|
||||
}
|
||||
|
||||
@Get(':slug')
|
||||
findOne(@Param('slug') slug: string) {
|
||||
return this.blogsService.findOneBySlug(slug);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user