|
|
@ -3,8 +3,7 @@ |
|
|
|
$app->get('/editor', function() use($app) { |
|
|
|
$user = require_login($app, false); |
|
|
|
$html = $app->render('editor.php', [ |
|
|
|
'user' => $user, |
|
|
|
'syndication_targets' => json_decode($user->syndication_targets, true) |
|
|
|
'user' => $user |
|
|
|
]); |
|
|
|
$app->response()->body($html); |
|
|
|
}); |
|
|
@ -25,6 +24,7 @@ $app->post('/editor/publish', function() use($app) { |
|
|
|
'name' => [$params['name']], |
|
|
|
'description' => [$params['description']], |
|
|
|
'image' => [$params['image']], |
|
|
|
'imagealt' => [$params['imagealt']], |
|
|
|
'content' => [$content] |
|
|
|
); |
|
|
|
$json = true; |
|
|
@ -36,6 +36,7 @@ $app->post('/editor/publish', function() use($app) { |
|
|
|
'name' => [$params['name']], |
|
|
|
'description' => [$params['description']], |
|
|
|
'image' => [$params['image']], |
|
|
|
'imagealt' => [$params['imagealt']], |
|
|
|
'content' => [$content] |
|
|
|
); |
|
|
|
} |
|
|
|