diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 0899ceb..767e5c2 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -152,7 +152,12 @@ class ApiController extends Controller $newsArticle = $this->createNewsArticleFromRequest($request); NewsArticleMapper::create($newsArticle); - $response->set($request->getUri()->__toString(), $newsArticle->jsonSerialize()); + $response->set($request->getUri()->__toString(), [ + 'status' => NotificationLevel::OK, + 'title' => 'News', + 'message' => 'News article successfully created.', + 'response' => $newsArticle->jsonSerialize() + ]); } /** diff --git a/Theme/Backend/news-create.tpl.php b/Theme/Backend/news-create.tpl.php index 128fd98..e3771ec 100644 --- a/Theme/Backend/news-create.tpl.php +++ b/Theme/Backend/news-create.tpl.php @@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>