An OX Controller
file: code/Winxle-Admin/CampaignController.pm 30: sub status_PUT { 31: my ( $self, $req, $uuid ) = @_; 32: 33: my $data = $req->got_json; 34: 35: try { 36: $self->campaign_model->update_status( $uuid, $data ); 37: return $req->new_json_response( { status => 'ok' } ); 38: } 39: catch { 40: return $req->new_json_error($_); 41: }; 42: }