adds a simple publish status UI to show errors
This commit is contained in:
parent
475175da5f
commit
cb93a9925b
6 changed files with 121 additions and 26 deletions
|
@ -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']))
|
||||
]));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue