@@ -5,8 +5,7 @@ import { BadRequestError } from '../../service/error';
55import errorResposne from '../module/error' ;
66
77/**
8- * @method patch
9- * @description url - /apis/visitor/count
8+ * @method patch - /apis/visitor/count
109 */
1110const 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 */
2725const 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 */
5350const 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 */
7571const 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 */
9186const deleteVisitorCommentById = async ( req : Request , res : Response ) => {
9287 try {
0 commit comments