diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 5514451..51ef3c2 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -45,7 +45,7 @@ $routes->get('/mermsmemr/myfit/blogdata/(:any)', 'Myfit::blogdata/$1'); $routes->get('/mermsmemr/myfit/blogdata', 'Myfit::blogdata'); // when no limit is sent $routes->get('/mermsmemr/myfit/faq', 'Myfit::faq'); $routes->post('/mermsmemr/myfit/contact', 'Myfit::contact'); -$routes->post('/mermsmemr/myfit/pricing', 'Myfit::pricing'); +$routes->get('/mermsmemr/myfit/pricing', 'Myfit::pricing'); diff --git a/app/Controllers/Myfit.php b/app/Controllers/Myfit.php index 50d50ed..f68e6a7 100644 --- a/app/Controllers/Myfit.php +++ b/app/Controllers/Myfit.php @@ -24,13 +24,6 @@ class Myfit extends BaseController return $this->response->setJson($res1); } - public function pricing() - { - $mBlogData = new \App\Models\myfitBlogData(); - $res1 = $mBlogData->getBlogData([]); - return $this->response->setJson($res1); - } - public function contact() { $inx = array( @@ -70,5 +63,10 @@ class Myfit extends BaseController $mFaq = new \App\Models\myfitFaqData(); return $this->response->setJson($mFaq->getSiteFaq([])); } - + + public function pricing() + { + $mPricing = new \App\Models\myfitPricing(); + return $this->response->setJson($mPricing->getSitePricing([])); + } } \ No newline at end of file diff --git a/app/Models/myfitPricing.php b/app/Models/myfitPricing.php new file mode 100644 index 0000000..8c406a8 --- /dev/null +++ b/app/Models/myfitPricing.php @@ -0,0 +1,48 @@ + 'This is the title 1 from backend', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + ], + [ + 'title' => 'This is the title 2', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + ], + [ + 'title' => 'This is the title 3', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + ], + [ + 'title' => 'This is the title 4', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + ], + [ + 'title' => 'This is the title 5', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + ], + [ + 'title' => 'This is the title 6', + 'text' => 'Random Text Generator is a web application which provides true random text which you can use in your documents or web designs. How does it work? First we took many books available on project Gutenberg and stored their contents in a database.' + ] + ); + + } + +} \ No newline at end of file