Move Phrasen API

This commit is contained in:
cgfhtw
2024-03-06 13:02:34 +01:00
parent e89aa824d2
commit 872ef7c31c
3 changed files with 31 additions and 4 deletions
@@ -0,0 +1,27 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
*
*/
class Phrasen extends FHC_Controller
{
//------------------------------------------------------------------------------------------------------------------
// Public methods
/**
* @param string $module
*/
public function loadModule($module)
{
$this->load->library('PhrasesLib', [$module], 'pj');
$this->outputJson([
'data' => json_decode($this->pj->getJSON()),
'meta' => [
'status' => FHCAPI_Controller::STATUS_SUCCESS
]
]);
}
}