Fixing comment import
Some checks failed
Anatid Blog CI Workflow / test (./backend) (push) Failing after 28s
Anatid Blog CI Workflow / test (./frontend) (push) Successful in 29s
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Has been skipped
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Has been skipped
Anatid Blog CI Workflow / deploy (push) Has been skipped
Some checks failed
Anatid Blog CI Workflow / test (./backend) (push) Failing after 28s
Anatid Blog CI Workflow / test (./frontend) (push) Successful in 29s
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Has been skipped
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Has been skipped
Anatid Blog CI Workflow / deploy (push) Has been skipped
This commit is contained in:
parent
95f3bf98c7
commit
379680565b
@ -1,4 +1,19 @@
|
|||||||
import { Controller } from '@nestjs/common';
|
import { Controller, Get, Param } from '@nestjs/common';
|
||||||
|
import { PostService } from './post.service';
|
||||||
|
|
||||||
@Controller('post')
|
@Controller('posts')
|
||||||
export class PostController {}
|
export class PostController {
|
||||||
|
|
||||||
|
constructor(private readonly postService: PostService) {}
|
||||||
|
|
||||||
|
@Get()
|
||||||
|
async findAll() {
|
||||||
|
return this.postService.findAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Get(':id/comments')
|
||||||
|
async findCommentsByPostId(@Param('id') postId: string) {
|
||||||
|
return this.postService.findCommentsByPostId(+postId);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user