From d162fb128460c2b5c6ec10107390ea29caa6b829 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Apr 2012 08:42:40 +0200 Subject: [PATCH] +api --- htdocs/application/controllers/api.php | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 htdocs/application/controllers/api.php 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(); + } + } +}