예제 #1
0
 public function destroy()
 {
     $id = $this->request->get('id');
     $item = AgreementTable::get($id);
     if ($item) {
         $item->delete();
         $this->server->sendOK();
     } else {
         $this->server->sendNotFound();
     }
 }
예제 #2
0
 public function get()
 {
     $data = AgreementTable::getAll();
     $this->server->sendData($data);
 }