urls: Move the report endpoints to be API-style routes.

This commit is contained in:
Alena Volkova
2017-10-16 16:07:19 -04:00
committed by Tim Abbott
parent 9234abbd59
commit 5515a075ec
9 changed files with 40 additions and 42 deletions

View File

@@ -128,7 +128,7 @@ function report_error(msg, stack, opts) {
// setup is done or do it ourselves and then retry.
$.ajax({
type: 'POST',
url: '/json/report_error',
url: '/json/report/error',
dataType: 'json',
data: { message: msg,
stacktrace: stack,