adds a simple publish status UI to show errors

This commit is contained in:
Aaron Parecki 2015-05-11 17:42:06 +02:00
parent 475175da5f
commit cb93a9925b
6 changed files with 121 additions and 26 deletions

View file

@ -21,7 +21,8 @@ $app->post('/editor/publish', function() use($app) {
$app->response()['Content-type'] = 'application/json';
$app->response()->body(json_encode([
'location' => $r['location']
'location' => $r['location'],
'response' => trim(htmlspecialchars($r['response']))
]));
}
});