filtered data

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-10 20:44:31 -04:00
parent 4f6a10ab6a
commit b15e5ee988
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ $routes->get('/wp/', 'Dengine::index');
//$routes->get('/en/floatweb/api/v1/blogdata/(:any)', 'FloatWeb::blogData/$1');
$routes->get('/en/floatweb/api/v1/blogdata/', 'FloatWeb::website');
$routes->get('/en/floatweb/api/v1/blogdata/(:any)', 'FloatWeb::website/$1');
$routes->get('/en/floatweb/api/v1/blogdata/(:any)', 'FloatWeb::blogLimitedData/$1');
$routes->get('/en/floatweb/api/v1/faq', 'FloatWeb::website');
$routes->post('/en/floatweb/api/v1/contact', 'FloatWeb::website');
+9 -1
View File
@@ -525,7 +525,15 @@ variations from the norm, and in addition other reproductive organ issue
{
}
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 website($inData=[])
{
//$request = service('request');
header('Access-Control-Allow-Origin: *');