mirror of
https://github.com/balloonwj/TeamTalk.git
synced 2026-10-18 22:32:12 +08:00
23 lines
543 B
PHP
23 lines
543 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
class Api extends CI_Controller {
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->load->helper('url');
|
|
$this->load->model('discovery_model');
|
|
}
|
|
|
|
public function discovery()
|
|
{
|
|
$data = $this->discovery_model->getList(array('status'=>0));
|
|
foreach ($data as $key => $value) {
|
|
unset($data[$key]['id']);
|
|
unset($data[$key]['status']);
|
|
unset($data[$key]['created']);
|
|
unset($data[$key]['updated']);
|
|
}
|
|
echo json_encode($data);
|
|
}
|
|
} |