From 0d4d8cdb238564ca57f1b1ed5ac49f7639818522 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Tue, 30 Jan 2018 19:55:43 +0200 Subject: [PATCH] TT#28460 Format: Remove excrescent empty lines Change-Id: I5ff73d92bf62451fb6dbdae85ca07428c3f5af5d --- lib/NGCP/Panel/Controller/API/ApplyRewrites.pm | 9 --------- lib/NGCP/Panel/Controller/API/AutoAttendants.pm | 10 ---------- lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/BalanceIntervals.pm | 1 - lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm | 6 ------ lib/NGCP/Panel/Controller/API/BillingFees.pm | 7 ------- lib/NGCP/Panel/Controller/API/BillingFeesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/BillingNetworks.pm | 10 ---------- lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/BillingProfiles.pm | 10 ---------- lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/BillingZones.pm | 10 ---------- lib/NGCP/Panel/Controller/API/BillingZonesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CCMapEntries.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CFDestinationSets.pm | 10 ---------- .../Panel/Controller/API/CFDestinationSetsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CFMappings.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CFMappingsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CFSourceSets.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CFTimeSets.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CallControls.pm | 8 -------- lib/NGCP/Panel/Controller/API/CallForwards.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CallForwardsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CallLists.pm | 4 ---- lib/NGCP/Panel/Controller/API/CallListsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm | 1 - .../Panel/Controller/API/CallRecordingFilesItem.pm | 1 - lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm | 2 -- .../Panel/Controller/API/CallRecordingStreamsItem.pm | 1 - lib/NGCP/Panel/Controller/API/CallRecordings.pm | 2 -- lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm | 1 - lib/NGCP/Panel/Controller/API/Calls.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CallsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/Capabilities.pm | 2 -- lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm | 3 --- lib/NGCP/Panel/Controller/API/Contracts.pm | 5 ----- lib/NGCP/Panel/Controller/API/ContractsItem.pm | 5 ----- lib/NGCP/Panel/Controller/API/CustomerBalances.pm | 1 - lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm | 3 --- lib/NGCP/Panel/Controller/API/CustomerContacts.pm | 8 -------- lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm | 10 ---------- .../Panel/Controller/API/CustomerFraudEventsItem.pm | 10 ---------- .../Panel/Controller/API/CustomerFraudPreferences.pm | 2 -- .../Controller/API/CustomerFraudPreferencesItem.pm | 2 -- lib/NGCP/Panel/Controller/API/CustomerLocations.pm | 10 ---------- .../Panel/Controller/API/CustomerLocationsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/CustomerPreferences.pm | 10 ---------- .../Panel/Controller/API/CustomerPreferencesItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm | 10 ---------- .../Panel/Controller/API/CustomerZoneCostsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/Customers.pm | 5 ----- lib/NGCP/Panel/Controller/API/CustomersItem.pm | 5 ----- lib/NGCP/Panel/Controller/API/DomainPreferences.pm | 10 ---------- .../Panel/Controller/API/DomainPreferencesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/Domains.pm | 8 -------- lib/NGCP/Panel/Controller/API/DomainsItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/EmailTemplates.pm | 10 ---------- lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm | 10 ---------- .../Controller/API/EmergencyMappingContainers.pm | 10 ---------- .../Controller/API/EmergencyMappingContainersItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/EmergencyMappings.pm | 11 ----------- .../Panel/Controller/API/EmergencyMappingsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/Events.pm | 2 -- lib/NGCP/Panel/Controller/API/EventsItem.pm | 2 -- lib/NGCP/Panel/Controller/API/FaxRecordings.pm | 2 -- lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm | 4 ---- lib/NGCP/Panel/Controller/API/Faxes.pm | 11 ----------- lib/NGCP/Panel/Controller/API/FaxesItem.pm | 6 ------ lib/NGCP/Panel/Controller/API/FaxserverSettings.pm | 10 ---------- .../Panel/Controller/API/FaxserverSettingsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/Interceptions.pm | 8 -------- lib/NGCP/Panel/Controller/API/InterceptionsItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm | 10 ---------- lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/LnpCarriers.pm | 10 ---------- lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/LnpNumbers.pm | 11 ----------- lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm | 10 ---------- .../Panel/Controller/API/MailToFaxSettingsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/MaliciousCalls.pm | 10 ---------- lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/ManagerSecretary.pm | 2 -- lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm | 5 ----- lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm | 4 ---- lib/NGCP/Panel/Controller/API/NcosLevels.pm | 10 ---------- lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm | 10 ---------- lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/NcosPatterns.pm | 10 ---------- lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/Numbers.pm | 2 -- lib/NGCP/Panel/Controller/API/NumbersItem.pm | 2 -- lib/NGCP/Panel/Controller/API/PartyCallControls.pm | 2 -- lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm | 2 -- .../Panel/Controller/API/PbxDeviceConfigFilesItem.pm | 4 ---- lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm | 8 -------- .../Panel/Controller/API/PbxDeviceFirmwareBinaries.pm | 2 -- .../Controller/API/PbxDeviceFirmwareBinariesItem.pm | 4 ---- lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm | 10 ---------- .../Panel/Controller/API/PbxDeviceFirmwaresItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm | 10 ---------- .../Panel/Controller/API/PbxDevicePreferencesItem.pm | 8 -------- .../Controller/API/PbxDeviceProfilePreferences.pm | 10 ---------- .../Controller/API/PbxDeviceProfilePreferencesItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm | 11 ----------- .../Panel/Controller/API/PbxDeviceProfilesItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/PbxDevices.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PeeringGroups.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm | 10 ---------- .../Panel/Controller/API/PeeringInboundRulesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PeeringRules.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm | 10 ---------- .../Panel/Controller/API/PeeringServerPreferences.pm | 10 ---------- .../Controller/API/PeeringServerPreferencesItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/PeeringServers.pm | 10 ---------- lib/NGCP/Panel/Controller/API/PeeringServersItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/ProfilePackages.pm | 10 ---------- lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/ProfilePreferences.pm | 10 ---------- .../Panel/Controller/API/ProfilePreferencesItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/Reminders.pm | 2 -- lib/NGCP/Panel/Controller/API/RemindersItem.pm | 6 ------ lib/NGCP/Panel/Controller/API/Resellers.pm | 10 ---------- lib/NGCP/Panel/Controller/API/ResellersItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/RewriteRules.pm | 1 - lib/NGCP/Panel/Controller/API/RtcApps.pm | 10 ---------- lib/NGCP/Panel/Controller/API/RtcAppsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/RtcNetworks.pm | 10 ---------- lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/RtcSessions.pm | 10 ---------- lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm | 2 -- .../Panel/Controller/API/SoundFileRecordingsItem.pm | 4 ---- lib/NGCP/Panel/Controller/API/SoundFiles.pm | 7 ------- lib/NGCP/Panel/Controller/API/SoundFilesItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/SoundHandles.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SoundSets.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SoundSetsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SpeedDials.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm | 10 ---------- .../Panel/Controller/API/SubscriberPreferences.pm | 3 --- .../Panel/Controller/API/SubscriberPreferencesItem.pm | 8 -------- .../Panel/Controller/API/SubscriberProfileSets.pm | 10 ---------- .../Panel/Controller/API/SubscriberProfileSetsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm | 10 ---------- .../Panel/Controller/API/SubscriberProfilesItem.pm | 10 ---------- .../Panel/Controller/API/SubscriberRegistrations.pm | 10 ---------- .../Controller/API/SubscriberRegistrationsItem.pm | 9 --------- lib/NGCP/Panel/Controller/API/Subscribers.pm | 8 -------- lib/NGCP/Panel/Controller/API/SubscribersItem.pm | 11 ----------- lib/NGCP/Panel/Controller/API/SystemContacts.pm | 10 ---------- lib/NGCP/Panel/Controller/API/SystemContactsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/TopupCash.pm | 8 -------- lib/NGCP/Panel/Controller/API/TopupLogs.pm | 10 ---------- lib/NGCP/Panel/Controller/API/TopupLogsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/TopupVouchers.pm | 8 -------- lib/NGCP/Panel/Controller/API/TrustedSources.pm | 10 ---------- lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm | 10 ---------- lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/VoicemailGreetings.pm | 1 - lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm | 3 --- .../Panel/Controller/API/VoicemailRecordingsItem.pm | 2 -- lib/NGCP/Panel/Controller/API/VoicemailSettings.pm | 10 ---------- .../Panel/Controller/API/VoicemailSettingsItem.pm | 8 -------- lib/NGCP/Panel/Controller/API/Voicemails.pm | 10 ---------- lib/NGCP/Panel/Controller/API/VoicemailsItem.pm | 10 ---------- lib/NGCP/Panel/Controller/API/Vouchers.pm | 10 ---------- lib/NGCP/Panel/Controller/API/VouchersItem.pm | 6 ------ 178 files changed, 1422 deletions(-) diff --git a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm index b11967fe6a..72e4e7caa1 100644 --- a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm +++ b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm @@ -45,12 +45,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - - - sub POST :Allow { my ($self, $c) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -110,9 +104,6 @@ sub POST :Allow { return; } - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm index b76584991b..013ed25189 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm @@ -48,10 +48,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -99,12 +95,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm index d9a9cabd4f..655aec4163 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $schema = $c->model('DB'); @@ -145,8 +137,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm index ed8a0f5064..3a76f82463 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm @@ -92,7 +92,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm index 2660fd8748..3cd0edf258 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm @@ -147,10 +147,6 @@ sub GET :Allow { return; } - - - - sub item_base { my ($self,$c,$id) = @_; $c->stash->{contract_id} = $id; @@ -207,6 +203,4 @@ sub item_head { return; } - - 1; diff --git a/lib/NGCP/Panel/Controller/API/BillingFees.pm b/lib/NGCP/Panel/Controller/API/BillingFees.pm index 0a92bc36c8..e873bf7ca7 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFees.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFees.pm @@ -57,7 +57,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - sub auto :Private { my ($self, $c) = @_; @@ -117,10 +116,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -229,8 +224,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm index 9f7739b4ce..bd77982db2 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -61,10 +57,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -147,8 +139,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm index c635f0d9ff..d0c51ba732 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm @@ -82,10 +82,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -129,10 +125,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -193,8 +185,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm index 5d029fbdfb..f2fdd5f56d 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm @@ -45,10 +45,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -71,10 +67,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -170,8 +162,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm index ce68e5ca6c..b17e6eddf9 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm @@ -69,10 +69,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -122,10 +118,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -208,8 +200,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm index 7cb6316332..2a872e18dd 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -69,10 +65,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -147,8 +139,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingZones.pm b/lib/NGCP/Panel/Controller/API/BillingZones.pm index 2d9f93306f..d82a9875a6 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZones.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZones.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -120,10 +116,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -185,8 +177,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm index 1cac148988..63a3b3b05a 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -69,10 +65,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -171,8 +163,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm index 17a4def4a5..453ff522a0 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm @@ -46,10 +46,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -99,12 +95,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm index da3d638bca..5ea04fe67b 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -174,8 +166,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm index 299dd91b61..b6fcaa1c80 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm @@ -71,10 +71,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -123,10 +119,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -224,8 +216,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm index 1ee23df25d..cd3eeb70f6 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -171,8 +163,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFMappings.pm b/lib/NGCP/Panel/Controller/API/CFMappings.pm index 4db67fb44a..c3cc8d022f 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappings.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappings.pm @@ -62,10 +62,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -114,12 +110,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm index d8032db1a6..cfb4910084 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -144,8 +136,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFSourceSets.pm b/lib/NGCP/Panel/Controller/API/CFSourceSets.pm index 49dc8f3a8e..20aaa079a0 100644 --- a/lib/NGCP/Panel/Controller/API/CFSourceSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFSourceSets.pm @@ -78,10 +78,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -130,10 +126,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -215,8 +207,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm index 42dad91dcb..77b410478f 100644 --- a/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -171,8 +163,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm index 120f6e3b4e..401a4c12fb 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm @@ -71,10 +71,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -123,10 +119,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -203,8 +195,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm index 1527022854..e86ce712cc 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -171,8 +163,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallControls.pm b/lib/NGCP/Panel/Controller/API/CallControls.pm index af35c200a4..ab7f7235fb 100644 --- a/lib/NGCP/Panel/Controller/API/CallControls.pm +++ b/lib/NGCP/Panel/Controller/API/CallControls.pm @@ -48,12 +48,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - - - sub POST :Allow { my ($self, $c) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -110,8 +104,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallForwards.pm b/lib/NGCP/Panel/Controller/API/CallForwards.pm index 68e9345908..9932f45895 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwards.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwards.pm @@ -64,10 +64,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -118,12 +114,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm index 46e6831e7d..1c89901012 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -181,8 +173,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallLists.pm b/lib/NGCP/Panel/Controller/API/CallLists.pm index 828f1f910c..9fdbc82a5b 100644 --- a/lib/NGCP/Panel/Controller/API/CallLists.pm +++ b/lib/NGCP/Panel/Controller/API/CallLists.pm @@ -282,10 +282,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CallListsItem.pm b/lib/NGCP/Panel/Controller/API/CallListsItem.pm index 881a0711c6..7164410a87 100644 --- a/lib/NGCP/Panel/Controller/API/CallListsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallListsItem.pm @@ -35,10 +35,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -75,12 +71,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm b/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm index 4a10300047..0e47641502 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm @@ -40,7 +40,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm index e7bfa604f3..ec6a010f81 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm @@ -35,7 +35,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm b/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm index eecda54525..0b21aa678d 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm @@ -73,7 +73,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -128,7 +127,6 @@ sub GET :Allow { return; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm index 0b35c4c808..384af1807f 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm @@ -36,7 +36,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/CallRecordings.pm b/lib/NGCP/Panel/Controller/API/CallRecordings.pm index d055536683..713541fada 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordings.pm @@ -80,7 +80,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -135,7 +134,6 @@ sub GET :Allow { return; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm index cd21ad5a74..0dfca4755f 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm @@ -34,7 +34,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/Calls.pm b/lib/NGCP/Panel/Controller/API/Calls.pm index 5238427048..86b5c01eec 100644 --- a/lib/NGCP/Panel/Controller/API/Calls.pm +++ b/lib/NGCP/Panel/Controller/API/Calls.pm @@ -81,10 +81,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -133,12 +129,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallsItem.pm b/lib/NGCP/Panel/Controller/API/CallsItem.pm index 7d41a6f635..83f84215ac 100644 --- a/lib/NGCP/Panel/Controller/API/CallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,12 +56,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Capabilities.pm b/lib/NGCP/Panel/Controller/API/Capabilities.pm index 666290311b..1619ee80fd 100644 --- a/lib/NGCP/Panel/Controller/API/Capabilities.pm +++ b/lib/NGCP/Panel/Controller/API/Capabilities.pm @@ -52,7 +52,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -103,7 +102,6 @@ sub GET :Allow { return; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm b/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm index 007aac7479..7ebe8766e1 100644 --- a/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm @@ -35,7 +35,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -58,8 +57,6 @@ sub GET :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Contracts.pm b/lib/NGCP/Panel/Controller/API/Contracts.pm index a589828da0..7329b94a16 100644 --- a/lib/NGCP/Panel/Controller/API/Contracts.pm +++ b/lib/NGCP/Panel/Controller/API/Contracts.pm @@ -81,7 +81,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -142,10 +141,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/ContractsItem.pm b/lib/NGCP/Panel/Controller/API/ContractsItem.pm index 6d5b861781..6f1c8b5864 100644 --- a/lib/NGCP/Panel/Controller/API/ContractsItem.pm +++ b/lib/NGCP/Panel/Controller/API/ContractsItem.pm @@ -46,7 +46,6 @@ __PACKAGE__->set_config({ } }); - sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); @@ -72,10 +71,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm index eee9ed8a7c..c85c66063b 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm @@ -124,7 +124,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm index 10025e4611..8b9f5ae3a3 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm @@ -42,7 +42,6 @@ __PACKAGE__->set_config({ } }); - sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); @@ -69,8 +68,6 @@ sub GET :Allow { return; } - - sub PATCH :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); diff --git a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm index ffe338d107..d13287a9c0 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm @@ -68,10 +68,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -120,10 +116,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm index a3d91596f3..d92eb85609 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm @@ -42,10 +42,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -69,10 +65,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm index 1171879a07..f2b405a29e 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm @@ -60,10 +60,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -113,12 +109,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm index 838e225035..24e40485b0 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -68,12 +64,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm index e68e0a065c..f01508d99a 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm @@ -83,7 +83,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -127,5 +126,4 @@ sub GET :Allow { return; } - 1; diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm index 1e247cc4e9..aa29e54a61 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm @@ -41,7 +41,6 @@ __PACKAGE__->set_config({ } }); - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -64,7 +63,6 @@ sub GET :Allow { return; } - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm index 250f04ff73..0569652227 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm @@ -70,10 +70,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -117,10 +113,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -170,8 +162,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm index ea441b3cb0..ab118c88c5 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm @@ -45,10 +45,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -71,10 +67,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -166,8 +158,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm index 6515a3baaf..a0703796cb 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm @@ -58,10 +58,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -109,12 +105,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm index 5acaea962e..ee9fa92dc5 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm index 315c7a90aa..c0691fe3e0 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -127,12 +123,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm index 1b5b5ea198..b390e24caa 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm @@ -36,10 +36,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -63,12 +59,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Customers.pm b/lib/NGCP/Panel/Controller/API/Customers.pm index 326bdbf33d..8ae8ddb90c 100644 --- a/lib/NGCP/Panel/Controller/API/Customers.pm +++ b/lib/NGCP/Panel/Controller/API/Customers.pm @@ -153,7 +153,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -204,10 +203,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/CustomersItem.pm b/lib/NGCP/Panel/Controller/API/CustomersItem.pm index 0962ce813b..86ae9bcad6 100644 --- a/lib/NGCP/Panel/Controller/API/CustomersItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomersItem.pm @@ -46,7 +46,6 @@ __PACKAGE__->set_config({ } }); - sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); @@ -79,10 +78,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm index 6a8b12411d..0fbc140e78 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm @@ -49,10 +49,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -100,12 +96,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm index 06e417eacf..4092efe08c 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm @@ -36,10 +36,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -63,10 +59,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -153,8 +145,6 @@ sub PUT :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Domains.pm b/lib/NGCP/Panel/Controller/API/Domains.pm index f72d5f7d32..d657bce34f 100644 --- a/lib/NGCP/Panel/Controller/API/Domains.pm +++ b/lib/NGCP/Panel/Controller/API/Domains.pm @@ -70,10 +70,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -124,10 +120,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/DomainsItem.pm b/lib/NGCP/Panel/Controller/API/DomainsItem.pm index fd13b17b00..a91acdd79d 100644 --- a/lib/NGCP/Panel/Controller/API/DomainsItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainsItem.pm @@ -45,10 +45,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -71,10 +67,6 @@ sub GET :Allow { return; } - - - - sub DELETE :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm index 2b6aefe01a..2623d8d679 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -119,10 +115,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -173,8 +165,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm index 786a8f59e5..7df3d16aed 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -148,8 +140,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm index 51f29ae261..13631f51ae 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm @@ -68,10 +68,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -121,10 +117,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -180,8 +172,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm index 46160bae2a..55967c3edc 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm @@ -34,10 +34,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -61,10 +57,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -147,8 +139,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm index 3543f3a317..f65eeac9d3 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm @@ -23,7 +23,6 @@ sub allowed_methods{ return [qw/GET POST OPTIONS HEAD/]; } - sub api_description { return 'Defines emergency mappings for an Emergency Mapping Container. You can POST mappings individually one-by-one using json. To bulk-upload mappings, specify the Content-Type as "text/csv", pass a reseller_id URL parameter and POST the CSV in the request body to the collection with an optional parameter "purge_existing=true", like "/api/emergencymappings/?reseller_id=123&purge_existing=true"'; }; @@ -86,10 +85,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub check_create_csv :Private { my ($self, $c) = @_; my $reseller_id = $c->request->params->{reseller_id}; @@ -161,10 +156,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -277,8 +268,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm index 545adfe6e8..80915b60f0 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -140,8 +132,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Events.pm b/lib/NGCP/Panel/Controller/API/Events.pm index 1de67bce74..d39b330928 100644 --- a/lib/NGCP/Panel/Controller/API/Events.pm +++ b/lib/NGCP/Panel/Controller/API/Events.pm @@ -103,7 +103,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -151,5 +150,4 @@ sub GET :Allow { return; } - 1; diff --git a/lib/NGCP/Panel/Controller/API/EventsItem.pm b/lib/NGCP/Panel/Controller/API/EventsItem.pm index 7598d7359b..659c398770 100644 --- a/lib/NGCP/Panel/Controller/API/EventsItem.pm +++ b/lib/NGCP/Panel/Controller/API/EventsItem.pm @@ -33,7 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -57,5 +56,4 @@ sub GET :Allow { return; } - 1; diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm index df3764bba1..8feaa2a235 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm @@ -40,8 +40,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm index b32aefb41f..cba05884ba 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm @@ -36,10 +36,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; my $rc = 1; diff --git a/lib/NGCP/Panel/Controller/API/Faxes.pm b/lib/NGCP/Panel/Controller/API/Faxes.pm index d50d99af97..bc8ca7feca 100644 --- a/lib/NGCP/Panel/Controller/API/Faxes.pm +++ b/lib/NGCP/Panel/Controller/API/Faxes.pm @@ -110,10 +110,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -161,10 +157,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; { @@ -224,9 +216,6 @@ sub POST :Allow { return; } - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxesItem.pm b/lib/NGCP/Panel/Controller/API/FaxesItem.pm index 5a0af8d399..21904a3286 100644 --- a/lib/NGCP/Panel/Controller/API/FaxesItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxesItem.pm @@ -34,10 +34,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -85,8 +81,6 @@ sub GET :Allow { # return; #} - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm index b792654045..e6b1ab6ea3 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm @@ -78,10 +78,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -131,12 +127,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm index b40c8845c7..08689910f8 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm @@ -45,10 +45,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -71,10 +67,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -170,8 +162,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Interceptions.pm b/lib/NGCP/Panel/Controller/API/Interceptions.pm index 2947ce3f0f..add2037009 100644 --- a/lib/NGCP/Panel/Controller/API/Interceptions.pm +++ b/lib/NGCP/Panel/Controller/API/Interceptions.pm @@ -68,8 +68,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - sub auto :Private { my ($self, $c) = @_; @@ -130,10 +128,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -239,8 +233,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm index 3428127260..1f00f131b5 100644 --- a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm @@ -34,8 +34,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - sub auto :Private { my ($self, $c) = @_; @@ -71,10 +69,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $cguard = $c->model('DB')->txn_scope_guard; @@ -179,8 +173,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm index b3027c03f1..64060050f9 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -119,12 +115,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm index 2713f97780..84dfc53225 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,12 +56,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm index fcd972914a..48877df2d4 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm @@ -68,10 +68,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -121,10 +117,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -176,8 +168,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm index 80035e94f6..b963fc915f 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -146,8 +138,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm index 05425c5c01..4f16906742 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm @@ -22,7 +22,6 @@ sub allowed_methods{ return [qw/GET POST DELETE OPTIONS HEAD/]; } - sub api_description { return 'Defines LNP number entries ported to a specific LNP Carrier. You can POST numbers individually one-by-one using json. To bulk-upload numbers, specify the Content-Type as "text/csv" and POST the CSV in the request body to the collection with an optional parameter "purge_existing=true", like "/api/lnpnumbers/?purge_existing=true"'; }; @@ -77,10 +76,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub check_create_csv :Private { my ($self, $c) = @_; return 'lnp_list.csv'; @@ -152,10 +147,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -285,8 +276,6 @@ sub DELETE :Allow { } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm index 64fb73558d..fb1b47647f 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -140,8 +132,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm index 954dda8a67..1a509f4e6c 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm @@ -78,10 +78,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -131,12 +127,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm index 1e15fbf116..c239d467ef 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm @@ -42,10 +42,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -68,10 +64,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -197,8 +189,6 @@ sub journalsitem_head :Journal { return $self->handle_journalsitem_head(@_); } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm index 358b208f34..28f8b7598a 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm @@ -125,10 +125,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -177,12 +173,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm index ee7a92cc91..e619412009 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub DELETE :Allow { my ($self, $c, $id) = @_; @@ -81,8 +73,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm b/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm index d9aa3fb204..eb5c8dbf98 100644 --- a/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm +++ b/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm @@ -51,7 +51,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -116,7 +115,6 @@ sub GET :Allow { return; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm b/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm index 91ba0c1daa..8e3020c44e 100644 --- a/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm +++ b/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm @@ -44,7 +44,6 @@ __PACKAGE__->set_config({ } }); - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -74,9 +73,6 @@ sub GET :Allow { return; } - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -174,7 +170,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm b/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm index 8f329508ba..bbdcc7f6db 100644 --- a/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm +++ b/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm @@ -36,10 +36,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/NcosLevels.pm b/lib/NGCP/Panel/Controller/API/NcosLevels.pm index 3cb7d9825c..e6e8e12efb 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevels.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevels.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -119,10 +115,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -173,8 +165,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm index 110021b70e..5ed3dc74b3 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -152,8 +144,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm index 4ff4226251..1c35a1542d 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -119,10 +115,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -178,8 +170,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm index edf30a5b3e..9e8f952a76 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -141,8 +133,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm index 16638ec74c..2d3d3abe18 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm @@ -56,10 +56,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -108,10 +104,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -173,8 +165,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm index 9df934bf5c..aae7f04296 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -141,8 +133,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Numbers.pm b/lib/NGCP/Panel/Controller/API/Numbers.pm index 641589f6b0..fe2d6159e0 100644 --- a/lib/NGCP/Panel/Controller/API/Numbers.pm +++ b/lib/NGCP/Panel/Controller/API/Numbers.pm @@ -92,7 +92,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -143,7 +142,6 @@ sub GET :Allow { return; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NumbersItem.pm b/lib/NGCP/Panel/Controller/API/NumbersItem.pm index 7e82c0992a..4661b5aad4 100644 --- a/lib/NGCP/Panel/Controller/API/NumbersItem.pm +++ b/lib/NGCP/Panel/Controller/API/NumbersItem.pm @@ -47,7 +47,6 @@ __PACKAGE__->set_config({ } }); - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,7 +69,6 @@ sub GET :Allow { return; } - sub PUT :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/PartyCallControls.pm b/lib/NGCP/Panel/Controller/API/PartyCallControls.pm index 7a618d639e..9953f44c33 100644 --- a/lib/NGCP/Panel/Controller/API/PartyCallControls.pm +++ b/lib/NGCP/Panel/Controller/API/PartyCallControls.pm @@ -49,8 +49,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - sub POST :Allow { my ($self, $c) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm index 415ca01ddb..d64173baad 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm @@ -45,8 +45,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm index c5c229bcab..d4e5489a4f 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm index afce344c9e..9770186f13 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm @@ -78,10 +78,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -130,10 +126,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -190,8 +182,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm index e0ed85927e..e26ef70a88 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm index ac226c033a..4120a7b267 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm @@ -45,8 +45,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm index b926d1f6c4..5f68926e0b 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm @@ -34,10 +34,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm index 9317e858e5..0430d20553 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm @@ -79,10 +79,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -131,10 +127,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -195,8 +187,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm index 918ce64c38..074b757705 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm b/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm index 27e1b4f07a..2a22bf32aa 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm @@ -40,10 +40,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $container_type = 'pbxdevicemodels'; @@ -92,12 +88,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm index 6a567ed20e..7e902fc9e5 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -73,10 +69,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm index 7a9ffded87..051b2e108a 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm @@ -40,10 +40,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $container_type = 'pbxdeviceprofiles'; @@ -92,12 +88,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm index b77eb1eabf..57e1527e34 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -73,10 +69,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm index de8c4eade7..7547ed1576 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm @@ -68,10 +68,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -120,10 +116,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -193,9 +185,6 @@ sub POST :Allow { return; } - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm index 11064fcfe9..f6d22cd467 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm @@ -36,10 +36,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -62,10 +58,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; diff --git a/lib/NGCP/Panel/Controller/API/PbxDevices.pm b/lib/NGCP/Panel/Controller/API/PbxDevices.pm index 00ed682658..97f2dfe1e2 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevices.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevices.pm @@ -80,10 +80,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -132,10 +128,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -262,8 +254,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm index dd48ef1385..7a25dc3371 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm @@ -36,10 +36,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -62,10 +58,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -172,8 +164,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringGroups.pm b/lib/NGCP/Panel/Controller/API/PeeringGroups.pm index ff01a684c2..7a5d8a8061 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringGroups.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringGroups.pm @@ -55,10 +55,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -107,10 +103,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -159,8 +151,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm index 636383d4d1..ad7df1b2d5 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm @@ -21,10 +21,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -48,10 +44,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -133,8 +125,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm b/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm index 398f34004e..4a7a0d8c3e 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm @@ -79,10 +79,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -131,10 +127,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -203,8 +195,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm index 08670ce9a8..8a364dfd75 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -144,8 +136,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringRules.pm b/lib/NGCP/Panel/Controller/API/PeeringRules.pm index 1ca0ac0223..fe996d3118 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRules.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRules.pm @@ -79,10 +79,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -131,10 +127,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -182,8 +174,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm index 0887b50d3e..c0efba245b 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -138,8 +130,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm index e53f09d20a..eb570f9864 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm @@ -48,10 +48,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $container_type = 'peerings'; @@ -100,12 +96,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm index ea78255154..fe481f6adb 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -73,10 +69,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/PeeringServers.pm b/lib/NGCP/Panel/Controller/API/PeeringServers.pm index e58f979431..3d0765d551 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServers.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServers.pm @@ -100,10 +100,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -152,10 +148,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -215,8 +207,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm index 6074943354..e256868af8 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -191,8 +183,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm index 99585ff22a..e7f75f20d5 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm @@ -96,10 +96,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -143,10 +139,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -215,8 +207,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm index c3af1cc521..10cd8ea496 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -69,10 +65,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -198,8 +190,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm index f9d22df275..37444cccf8 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm @@ -40,10 +40,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -91,12 +87,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm index 17bf5425e9..6c4d5b1e09 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -71,10 +67,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/Reminders.pm b/lib/NGCP/Panel/Controller/API/Reminders.pm index 4ec738d821..0b5cd35d98 100644 --- a/lib/NGCP/Panel/Controller/API/Reminders.pm +++ b/lib/NGCP/Panel/Controller/API/Reminders.pm @@ -73,8 +73,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/RemindersItem.pm b/lib/NGCP/Panel/Controller/API/RemindersItem.pm index abbc51e727..10feebf82f 100644 --- a/lib/NGCP/Panel/Controller/API/RemindersItem.pm +++ b/lib/NGCP/Panel/Controller/API/RemindersItem.pm @@ -41,8 +41,6 @@ __PACKAGE__->set_config({ } }); - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -65,10 +63,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/Resellers.pm b/lib/NGCP/Panel/Controller/API/Resellers.pm index f46867c8a1..f239fb598d 100644 --- a/lib/NGCP/Panel/Controller/API/Resellers.pm +++ b/lib/NGCP/Panel/Controller/API/Resellers.pm @@ -59,10 +59,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -112,10 +108,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -201,8 +193,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ResellersItem.pm b/lib/NGCP/Panel/Controller/API/ResellersItem.pm index e083cf1e7b..3d9218b0fc 100644 --- a/lib/NGCP/Panel/Controller/API/ResellersItem.pm +++ b/lib/NGCP/Panel/Controller/API/ResellersItem.pm @@ -42,10 +42,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -173,8 +165,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RewriteRules.pm b/lib/NGCP/Panel/Controller/API/RewriteRules.pm index f4565da54a..a8435d3ec2 100644 --- a/lib/NGCP/Panel/Controller/API/RewriteRules.pm +++ b/lib/NGCP/Panel/Controller/API/RewriteRules.pm @@ -11,7 +11,6 @@ __PACKAGE__->set_config({ own_transaction_control => { POST => 1 }, }); - sub allowed_methods{ return [qw/GET POST OPTIONS HEAD/]; } diff --git a/lib/NGCP/Panel/Controller/API/RtcApps.pm b/lib/NGCP/Panel/Controller/API/RtcApps.pm index a55d4e3ebf..beda55d946 100644 --- a/lib/NGCP/Panel/Controller/API/RtcApps.pm +++ b/lib/NGCP/Panel/Controller/API/RtcApps.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -95,12 +91,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm index 0d26380f5e..d092662bb0 100644 --- a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm @@ -40,10 +40,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -66,10 +62,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $schema = $c->model('DB'); @@ -197,8 +189,6 @@ sub journalsitem_head :Journal { return $self->handle_journalsitem_head(@_); } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm index 9ca77ae36f..1ce81670de 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -95,12 +91,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm index 8560c4b1fd..fe8542541f 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm @@ -40,10 +40,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -66,10 +62,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $schema = $c->model('DB'); @@ -197,8 +189,6 @@ sub journalsitem_head :Journal { return $self->handle_journalsitem_head(@_); } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcSessions.pm b/lib/NGCP/Panel/Controller/API/RtcSessions.pm index a8a82886db..10d0ef77e1 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessions.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessions.pm @@ -46,10 +46,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriber subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -99,10 +95,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -160,8 +152,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm index b3b724282f..c86664d872 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm @@ -47,10 +47,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -79,12 +75,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm index bac9284d04..14c5977f66 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm @@ -45,8 +45,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm index b52ff9230e..c118b2b12c 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/SoundFiles.pm b/lib/NGCP/Panel/Controller/API/SoundFiles.pm index dca4328d13..fda6a15656 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFiles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFiles.pm @@ -57,7 +57,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - sub auto :Private { my ($self, $c) = @_; @@ -114,10 +113,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -151,8 +146,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm index 3b91c33af9..5017d2d1e9 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -59,10 +55,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; diff --git a/lib/NGCP/Panel/Controller/API/SoundHandles.pm b/lib/NGCP/Panel/Controller/API/SoundHandles.pm index 114d418580..2acd1b37df 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandles.pm @@ -58,10 +58,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -110,12 +106,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm index 452164e8a0..41979831d0 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,12 +56,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundSets.pm b/lib/NGCP/Panel/Controller/API/SoundSets.pm index e9054cee43..2a7912347e 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSets.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSets.pm @@ -78,10 +78,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -130,10 +126,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -223,8 +215,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm index 8f0beb489a..720d1291f8 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -68,10 +64,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -179,8 +171,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SpeedDials.pm b/lib/NGCP/Panel/Controller/API/SpeedDials.pm index 04b282e80b..6a9e24ddbc 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDials.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDials.pm @@ -62,10 +62,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -113,12 +109,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm index d9acc3a4ae..9db3a12cc5 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm @@ -44,10 +44,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; my $schema = $c->model('DB'); @@ -169,8 +161,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm index 282f678c2e..89ecaf01eb 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm @@ -82,8 +82,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -144,7 +142,6 @@ sub GET :Allow { return; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm index 1c5e299d98..9336fce05f 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm @@ -45,10 +45,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); @@ -77,10 +73,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm index e29e2bb2f9..d4cb97cf73 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -119,10 +115,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -186,8 +178,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm index 23d5c084bb..2c4d63308a 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -68,10 +64,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; @@ -192,8 +184,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm index d4006a902b..07a88db220 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -119,10 +115,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -224,8 +216,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm index f35906f048..a93d35b59c 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -68,10 +64,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -186,8 +178,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm index fe7ea86de3..fc2b9aee2b 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm @@ -76,10 +76,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -130,10 +126,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -168,8 +160,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm index feb4d2b9fb..af0b072588 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -64,10 +60,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; @@ -208,7 +200,6 @@ sub delete_item { return 1; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Subscribers.pm b/lib/NGCP/Panel/Controller/API/Subscribers.pm index f83c614b30..ec6fd42bea 100644 --- a/lib/NGCP/Panel/Controller/API/Subscribers.pm +++ b/lib/NGCP/Panel/Controller/API/Subscribers.pm @@ -280,10 +280,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -346,10 +342,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm index cd989b74a3..a170db820f 100644 --- a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm @@ -45,10 +45,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); @@ -82,10 +78,6 @@ sub GET :Allow { return; } - - - - sub PUT :Allow { my ($self, $c, $id) = @_; @@ -211,7 +203,6 @@ sub PATCH :Allow { return; } - sub DELETE :Allow { my ($self, $c, $id) = @_; @@ -278,8 +269,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SystemContacts.pm b/lib/NGCP/Panel/Controller/API/SystemContacts.pm index 96af383457..2a1760f6e1 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContacts.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContacts.pm @@ -57,10 +57,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -109,10 +105,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -162,8 +154,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm index e1455b705a..926eddc095 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm @@ -42,10 +42,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -70,10 +66,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -203,8 +195,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TopupCash.pm b/lib/NGCP/Panel/Controller/API/TopupCash.pm index 1499c09dd2..97fa735b1f 100644 --- a/lib/NGCP/Panel/Controller/API/TopupCash.pm +++ b/lib/NGCP/Panel/Controller/API/TopupCash.pm @@ -50,12 +50,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - - - sub POST :Allow { my ($self, $c) = @_; @@ -145,8 +139,6 @@ sub POST :Allow { return; } - - sub get_form { my ($self, $c) = @_; return NGCP::Panel::Form::get('NGCP::Panel::Form::Topup::CashAPI', $c); diff --git a/lib/NGCP/Panel/Controller/API/TopupLogs.pm b/lib/NGCP/Panel/Controller/API/TopupLogs.pm index 09a5eb0237..024231c1a4 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogs.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogs.pm @@ -162,10 +162,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -213,10 +209,4 @@ sub GET :Allow { return; } - - - - - - 1; diff --git a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm index 990e4f2dee..bd91f18690 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm @@ -33,10 +33,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,12 +56,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm index 08c792bf9a..ba0fa6eb67 100644 --- a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm +++ b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm @@ -50,12 +50,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - - - sub POST :Allow { my ($self, $c) = @_; @@ -147,8 +141,6 @@ sub POST :Allow { return; } - - sub get_form { my ($self, $c) = @_; return NGCP::Panel::Form::get('NGCP::Panel::Form::Topup::VoucherAPI', $c); diff --git a/lib/NGCP/Panel/Controller/API/TrustedSources.pm b/lib/NGCP/Panel/Controller/API/TrustedSources.pm index 04ada7c832..a45e37a1d3 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSources.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSources.pm @@ -61,10 +61,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -113,10 +109,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -190,8 +182,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm index 7b80537be0..03506caac3 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -67,10 +63,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -222,8 +214,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm b/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm index 15eb371b36..6dddbfd968 100644 --- a/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm +++ b/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm @@ -60,10 +60,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -112,10 +108,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -187,8 +179,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm b/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm index 033fe4d6fd..64e5c13bfd 100644 --- a/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm @@ -41,10 +41,6 @@ __PACKAGE__->set_config({ } }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -67,10 +63,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -176,8 +168,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailGreetings.pm b/lib/NGCP/Panel/Controller/API/VoicemailGreetings.pm index f6c783ebaf..4fa5d54d1e 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailGreetings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailGreetings.pm @@ -89,7 +89,6 @@ sub create_item { return $item; } - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm index b132679a8e..a6f7ac5a9c 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm @@ -49,9 +49,6 @@ sub query_params { ]; } - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm index 39e38f2c5a..d6b368ed67 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm @@ -35,8 +35,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm index a1d5b0f697..49eb574a6e 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm @@ -60,10 +60,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -112,12 +108,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm index 72ef909a4c..7ab52354c2 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm @@ -41,8 +41,6 @@ __PACKAGE__->set_config({ } }); - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -65,10 +63,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -135,8 +129,6 @@ sub get_journal_methods{ return [qw/handle_item_base_journal handle_journals_get handle_journalsitem_get handle_journals_options handle_journalsitem_options handle_journals_head handle_journalsitem_head/]; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Voicemails.pm b/lib/NGCP/Panel/Controller/API/Voicemails.pm index 45b1e64722..cd4e415b74 100644 --- a/lib/NGCP/Panel/Controller/API/Voicemails.pm +++ b/lib/NGCP/Panel/Controller/API/Voicemails.pm @@ -69,10 +69,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -120,12 +116,6 @@ sub GET :Allow { return; } - - - - - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm index b9422dae1d..a8e7574535 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm @@ -34,10 +34,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); - - - - sub GET :Allow { my ($self, $c, $id) = @_; { @@ -60,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; my $guard = $c->model('DB')->txn_scope_guard; @@ -141,8 +133,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Vouchers.pm b/lib/NGCP/Panel/Controller/API/Vouchers.pm index c2a0ae0d00..f496253ad2 100644 --- a/lib/NGCP/Panel/Controller/API/Vouchers.pm +++ b/lib/NGCP/Panel/Controller/API/Vouchers.pm @@ -67,10 +67,6 @@ __PACKAGE__->set_config({ allowed_roles => [qw/admin reseller/], }); - - - - sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; @@ -119,10 +115,6 @@ sub GET :Allow { return; } - - - - sub POST :Allow { my ($self, $c) = @_; @@ -183,8 +175,6 @@ sub POST :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VouchersItem.pm b/lib/NGCP/Panel/Controller/API/VouchersItem.pm index 03a866074e..ab04b93596 100644 --- a/lib/NGCP/Panel/Controller/API/VouchersItem.pm +++ b/lib/NGCP/Panel/Controller/API/VouchersItem.pm @@ -56,10 +56,6 @@ sub GET :Allow { return; } - - - - sub PATCH :Allow { my ($self, $c, $id) = @_; unless($c->user->billing_data) { @@ -150,8 +146,6 @@ sub DELETE :Allow { return; } - - 1; # vim: set tabstop=4 expandtab: