approvals: move post approval endpoint to /post_approvals.

Move the post approval endpoint from `POST /moderator/post/approval` to
`POST /post_approvals`.
This commit is contained in:
evazion
2020-02-20 15:37:18 -06:00
parent 610ad9e119
commit f47c56d976
10 changed files with 30 additions and 48 deletions

View File

@@ -523,7 +523,7 @@ Post.update = function(post_id, params) {
Post.approve = function(post_id) {
$.post(
"/moderator/post/approval.json",
"/post_approvals.json",
{"post_id": post_id}
).fail(function(data) {
var message = $.map(data.responseJSON.errors, function(msg, attr) { return msg; }).join("; ");