| 1 | package Daje::Controller::Kanban::KanbanPlanboard; | ||
| 2 | 0 | ▶ | use Mojo::Base 'Daje::Controller::Kanban::Super::KanbanPlanboard', -base, -signatures; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 3 | use v5.42; | ||
| 4 | |||
| 5 | # NAME | ||
| 6 | # ==== | ||
| 7 | # | ||
| 8 | # Daje::Controller::Kanban::KanbanPlanboard - Controller class | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # use Daje::Controller::Kanban::KanbanPlanboard | ||
| 14 | # | ||
| 15 | # | ||
| 16 | # | ||
| 17 | # DESCRIPTION | ||
| 18 | # =========== | ||
| 19 | # | ||
| 20 | # Daje::Controller::Kanban::KanbanPlanboard is a standard controller | ||
| 21 | # | ||
| 22 | # METHODS | ||
| 23 | # ======= | ||
| 24 | # | ||
| 25 | # | ||
| 26 | # LICENSE | ||
| 27 | # ======= | ||
| 28 | # | ||
| 29 | # Copyright (C) janeskil1525. | ||
| 30 | # | ||
| 31 | # This library is free software; you can redistribute it and/or modify | ||
| 32 | # it under the same terms as Perl itself. | ||
| 33 | # | ||
| 34 | # AUTHOR | ||
| 35 | # ====== | ||
| 36 | # | ||
| 37 | # janeskil1525 E<lt>janeskil1525@gmail.com | ||
| 38 | # | ||
| 39 | |||
| 40 | # This file is generated automatically by Daje Tools 2026-03-15 11:55:45. | ||
| 41 | # It will not be re-generated by Daje Tools again. | ||
| 42 | # <!-- Autogenerated file 2026-03-15 11:55:45 --> | ||
| 43 | |||
| 44 | our $VERSION = '0.01'; | ||
| 45 | |||
| 46 | use Data::Dumper; | ||
| 47 | use Mojo::JSON qw{ decode_json }; | ||
| 48 | |||
| 49 | sub planboard_load_full_list($self) { | ||
| 50 | $self->app->log->debug('Daje::Controller::Super::KanbanPlanboard::planboard_load_full_list '); | ||
| 51 | $self->render_later; | ||
| 52 | |||
| 53 | my ($companies_pkey, $users_pkey) = $self->jwt->companies_users_pkey( | ||
| 54 | $self->req->headers->header('X-Token-Check') | ||
| 55 | ); | ||
| 56 | my $kanban_planboard_pkey = $self->param('kanban_planboard_pkey'); | ||
| 57 | # my $setting = $self->param('setting'); | ||
| 58 | $self->kanban_planboard_helper->planboard_load($companies_pkey, $users_pkey, $kanban_planboard_pkey)->then(sub($result) { | ||
| 59 | |||
| 60 | $self->app->log->debug('Daje::Controller::Super::KanbanPlanboard::planboard_load_full_list \n' . Dumper($result->{data})); | ||
| 61 | #$result->{data} = decode_json($result->{data}); | ||
| 62 | $self->render(text => $result->{data}->{json_build_object}); | ||
| 63 | })->catch(sub($err) { | ||
| 64 | $self->app->log->error('Daje::Controller::Super::KanbanPlanboard::planboard_load_full_list ' . $err); | ||
| 65 | $self->render | ||
| 66 | }); | ||
| 67 | } | ||
| 68 | 1; | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | #################### pod generated by Pod::Autopod - keep this line to make pod updates possible #################### | ||
| 73 | |||
| 74 | =head1 NAME | ||
| 75 | |||
| 76 | |||
| 77 | Daje::Controller::Kanban::KanbanPlanboard - Controller class | ||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | =head1 SYNOPSIS | ||
| 82 | |||
| 83 | |||
| 84 | use Daje::Controller::Kanban::KanbanPlanboard | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head1 DESCRIPTION | ||
| 91 | |||
| 92 | |||
| 93 | Daje::Controller::Kanban::KanbanPlanboard is a standard controller | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head1 REQUIRES | ||
| 98 | |||
| 99 | L<v5.42> | ||
| 100 | |||
| 101 | L<Mojo::Base> | ||
| 102 | |||
| 103 | |||
| 104 | =head1 METHODS | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head1 AUTHOR | ||
| 111 | |||
| 112 | |||
| 113 | janeskil1525 E<lt>janeskil1525@gmail.com | ||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | =head1 LICENSE | ||
| 118 | |||
| 119 | |||
| 120 | Copyright (C) janeskil1525. | ||
| 121 | |||
| 122 | This library is free software; you can redistribute it and/or modify | ||
| 123 | it under the same terms as Perl itself. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =cut | ||
| 128 | |||