From 0215f11d5c734cb818ed7b988b8f73e745e45179 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 12 May 2015 21:35:45 +0800 Subject: Bug 1146770: implement comment preview --- Bugzilla/WebService/Server/REST/Resources/Bug.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Bugzilla/WebService/Server') diff --git a/Bugzilla/WebService/Server/REST/Resources/Bug.pm b/Bugzilla/WebService/Server/REST/Resources/Bug.pm index 8c73e32e6..163790b77 100644 --- a/Bugzilla/WebService/Server/REST/Resources/Bug.pm +++ b/Bugzilla/WebService/Server/REST/Resources/Bug.pm @@ -62,7 +62,7 @@ sub _rest_resources { success_code => STATUS_CREATED } }, - qr{^/bug/comment/([^/]+)$}, { + qr{^/bug/comment/(\d+)$}, { GET => { method => 'comments', params => sub { @@ -86,6 +86,11 @@ sub _rest_resources { }, }, }, + qr{^/bug/comment/render$}, { + POST => { + method => 'render_comment', + }, + }, qr{^/bug/([^/]+)/history$}, { GET => { method => 'history', -- cgit v1.2.3-24-g4f1b