New blog path
This commit is contained in:
@@ -78,8 +78,11 @@ $routes->post('/en/wrench/api/v1/disableaccount', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/myjobs', 'WrenchApi::apigate');
|
||||
|
||||
|
||||
$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::apigate');
|
||||
$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate');
|
||||
//$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::apigate');
|
||||
//$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate');
|
||||
|
||||
$routes->get('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website');
|
||||
$routes->get('/en/wrench/api/v1/blogdata/(:any)', 'WrenchBlog::blogLimitedData/$1');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -65,6 +65,19 @@ class WrenchBlog extends BaseController
|
||||
return $res1;
|
||||
}
|
||||
|
||||
public function website(){
|
||||
|
||||
}
|
||||
|
||||
public function blogLimitedData($inData){
|
||||
log_message('critical', "blogLimitedData-> ".$inData );
|
||||
$res1 = $this->blogData('blogdata',$raw_array=['limit'=>$inData ]);
|
||||
|
||||
$res1['blogdata'] = array_slice($res1['blogdata'], 0, $inData);
|
||||
|
||||
return $this->response->setJson($res1);
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user