public function getAction() { Res::html('index', ['title' => 'Oni - A Simple REST Framework', 'method' => Req::method(), 'param' => implode('/', Req::param())]); }
public function up() { $this->option = JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE; $this->json = ['method' => Req::method(), 'param' => Req::param(), 'server' => $_SERVER, 'post' => $_POST, 'get' => $_GET]; }