diff --git a/htdocs/application/controllers/api.php b/htdocs/application/controllers/api.php new file mode 100755 index 0000000..3e181ee --- /dev/null +++ b/htdocs/application/controllers/api.php @@ -0,0 +1,33 @@ +load->model('pastes'); + + if (!$this->input->post('text')) + { + echo 'missing paste text'; + } + else + { + echo $this->pastes->createPaste(); + } + } +}