Route::get("page/articles", function () { pages::posts(); }); Route::get("page/medias", function () { pages::getAllMedias(); }); Route::get("page/api/{type}", function ($type) { pages::getXmlData($type); }); Route::get("page/post-new/{type}", function ($type) { pages::addPost($type); }); Route::get("page/menu", function () { pages::menu(); }); //Front-End Route::get("page/t/{id}", function ($id) { pages::getTypePost($id); }); Route::get("page/p/posts", function () { pages::getAllPost(); }); Route::get("page/addmenu", function () { pages::addMenu(); }); Route::get("page/action/addpage", function () { pages::addPageAction(); }); Route::get("page/action/addarticle", function () { pages::addArticleAction(); });
<?php /* |---------------------------------------------- | App Routes |---------------------------------------------- | hna route dial l application dialk aya route | khask t7eto hena | */ if (count(Config::get('app.page_on_front')) > 0) { Route::get("/", function () { pages::getTypePost(Config::get('app.page_on_front')['title']); }); } else { Route::get("/", function () { welcoms::index(); }); }