This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/lib/Pear/LocalLoop/Controller/Admin/ImportFrom.pm

27 lines
457 B
Perl
Raw Normal View History

2019-07-02 14:21:01 +00:00
package Pear::LocalLoop::Controller::Admin::ImportFrom;
use Mojo::Base 'Mojolicious::Controller';
2019-07-04 13:16:49 +00:00
use Devel::Dwarn;
2019-07-02 14:21:01 +00:00
2019-07-04 13:16:49 +00:00
sub index {
my $c = shift;
$c->app->max_request_size(1048576);
}
sub post_suppliers {
my $c = shift;
Dwarn "yahoo!";
return $c->redirect_to( '/admin/import_from' );
}
sub post_transactions {
my $c = shift;
Dwarn "yahoo!";
$c->flash( success => "CSV imported!" );
return $c->redirect_to( '/admin/import_from' );
}
1;