diff --git a/src/controllers/CommentsController.ts b/src/controllers/CommentsController.ts index cbf465c..9b337b7 100644 --- a/src/controllers/CommentsController.ts +++ b/src/controllers/CommentsController.ts @@ -56,9 +56,10 @@ export class CommentsController { * @param h Request handler */ public static async GetSingle(h: RequestHandler) { - const commentID = h.postCommentIDWithAccess("commentID"); + const commentID = await h.postCommentIDWithAccess("commentID"); + const comment = await CommentsHelper.GetSingle(commentID); - console.log("Comment ID: " + commentID); + h.send(await this.CommentToAPI(h, comment)) } /**