chore: initial commit
This commit is contained in:
25
api/controllers/Swagger.php
Normal file
25
api/controllers/Swagger.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user