summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-05-12 15:35:45 +0200
committerByron Jones <glob@mozilla.com>2015-05-12 15:35:45 +0200
commit0215f11d5c734cb818ed7b988b8f73e745e45179 (patch)
tree7d2c7f9b769bfa560aab4f0590597a52378ce438 /Bugzilla/WebService/Server
parentb7afadc6edb7a8f25acafaf08bd611b8ad5892ab (diff)
downloadbugzilla-0215f11d5c734cb818ed7b988b8f73e745e45179.tar.gz
bugzilla-0215f11d5c734cb818ed7b988b8f73e745e45179.tar.xz
Bug 1146770: implement comment preview
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r--Bugzilla/WebService/Server/REST/Resources/Bug.pm7
1 files changed, 6 insertions, 1 deletions
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',