mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29:22 +00:00
Can get information about a single comment
This commit is contained in:
parent
16ac9fae15
commit
77695ac8f4
@ -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))
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user