TT#28460 Format: Remove excrescent empty lines

Change-Id: I5ff73d92bf62451fb6dbdae85ca07428c3f5af5d
changes/94/18694/4
Irina Peshinskaya 8 years ago
parent 75d6edbcd9
commit 0d4d8cdb23

@ -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:

@ -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:

@ -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:

@ -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;

@ -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;

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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;

@ -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:

@ -40,7 +40,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
1;
# vim: set tabstop=4 expandtab:

@ -35,7 +35,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {
my ($self, $c, $id) = @_;
{

@ -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:

@ -36,7 +36,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {
my ($self, $c, $id) = @_;
{

@ -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:

@ -34,7 +34,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {
my ($self, $c, $id) = @_;
{

@ -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:

@ -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:

@ -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:

@ -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:

@ -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) = @_;

@ -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');

@ -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;

@ -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');

@ -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;

@ -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;

@ -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:

@ -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:

@ -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;

@ -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;

@ -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:

@ -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:

@ -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:

@ -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;

@ -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:

@ -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:

@ -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) = @_;

@ -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');

@ -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:

@ -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:

@ -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) = @_;

@ -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;

@ -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:

@ -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:

@ -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:

@ -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:

@ -23,7 +23,6 @@ sub allowed_methods{
return [qw/GET POST OPTIONS HEAD/];
}
sub api_description {
return 'Defines emergency mappings for an <a href="#emergencymappingscontainer">Emergency Mapping Container</a>. 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&amp;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:

@ -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:

@ -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;

@ -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;

@ -40,8 +40,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
1;
# vim: set tabstop=4 expandtab:

@ -36,10 +36,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller subscriberadmin subscriber/],
});
sub GET :Allow {
my ($self, $c, $id) = @_;
my $rc = 1;

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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 <a href="#lnpcarriers">LNP Carrier</a>. 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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -36,10 +36,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {
my ($self, $c) = @_;
{

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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:

@ -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;

@ -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;

@ -45,8 +45,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub auto :Private {
my ($self, $c) = @_;

@ -33,10 +33,6 @@ __PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
});
sub GET :Allow {
my ($self, $c, $id) = @_;
{

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save