1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-29 06:58:51 +00:00

Can get information about a single comment

This commit is contained in:
Pierre HUBERT 2020-03-21 11:51:51 +01:00
parent 16ac9fae15
commit 77695ac8f4

View File

@ -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))
}
/**