Create api endpoint for news
Route:
-
/api/news/latest
: latest news only for display in home -
/api/news/list
: for display published news in listing -
/api/news/{slug}
: for retrieving a particular published news
Route:
/api/news/latest
: latest news only for display in home/api/news/list
: for display published news in listing/api/news/{slug}
: for retrieving a particular published news