Skip to content

Commit 7cd594f

Browse files
committed
[Update] Fix controller typedoc #15
1 parent 64d60cd commit 7cd594f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

server/app/src/apis/visitor/visitor.ctrl.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { BadRequestError } from '../../service/error';
55
import errorResposne from '../module/error';
66

77
/**
8-
* @method patch
9-
* @description url - /apis/visitor/count
8+
* @method patch - /apis/visitor/count
109
*/
1110
const updateAndGetVisitor = async (req: Request, res: Response) => {
1211
try {
@@ -21,8 +20,7 @@ const updateAndGetVisitor = async (req: Request, res: Response) => {
2120
};
2221

2322
/**
24-
* @method post
25-
* @description url - /apis/visitor/comment
23+
* @method post - /apis/visitor/comment
2624
*/
2725
const createVisitComment = async (req: Request, res: Response) => {
2826
const RequestVisitorComment = Object.assign(req.body);
@@ -47,8 +45,7 @@ const createVisitComment = async (req: Request, res: Response) => {
4745
};
4846

4947
/**
50-
* @method patch
51-
* @description url - /apis/visitor/comment/{id}
48+
* @method patch - /apis/visitor/comment/{id}
5249
*/
5350
const updateVisitCommentById = async (req: Request, res: Response) => {
5451
const { id: visitorCommentId } = req.params;
@@ -69,8 +66,7 @@ const updateVisitCommentById = async (req: Request, res: Response) => {
6966
};
7067

7168
/**
72-
* @method get
73-
* @description url - /apis/visitor/comments
69+
* @method get - /apis/visitor/comments
7470
*/
7571
const getVisitorComments = async (req: Request, res: Response) => {
7672
try {
@@ -85,8 +81,7 @@ const getVisitorComments = async (req: Request, res: Response) => {
8581
};
8682

8783
/**
88-
* @method delete
89-
* @description url - /apis/visitor/comment/{id}
84+
* @method delete - /apis/visitor/comment/{id}
9085
*/
9186
const deleteVisitorCommentById = async (req: Request, res: Response) => {
9287
try {

0 commit comments

Comments
 (0)