25 lines
516 B
PHP
25 lines
516 B
PHP
<?php
|
|
|
|
require __DIR__ . '/REST_Controller.php';
|
|
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class Swagger extends CI_Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->load->library('app_modules');
|
|
}
|
|
|
|
public function index() {
|
|
$data['title'] = 'Api Guide';
|
|
$this->load->view('playground', $data);
|
|
}
|
|
|
|
public function json()
|
|
{
|
|
return REST_Controller::get_swagger_file();
|
|
}
|
|
} |