Flight::ok($object); } catch (Exception $exception) { Flight::error($exception); } }); Flight::route('PUT /v1/main/appinfo/@id', function ($id) { try { $object = AppInfo::update($id); Flight::ok($object); } catch (Exception $exception) { Flight::error($exception); } }); Flight::route('DELETE /v1/main/appinfo/@id', function ($id) { try { $object = AppInfo::delete($id); Flight::ok($object); } catch (Exception $exception) { Flight::error($exception); } }); //============================================================================= //AppLog //============================================================================= Flight::route('GET /v1/main/applog', function () { try { $array = AppLog::selectAll(); Flight::ok($array); } catch (Exception $exception) { Flight::error($exception); }