Controller/ToolsTableObjectDatatypes.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
load_table_object_datatypes
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Daje::Controller::ToolsTableObjectDatatypes;
2 use Mojo::Base 'Mojolicious::Controller', -signatures;
3 use v5.40;
4  
5 # NAME
6 # ====
7 #
8 # Daje::Controller::ToolsTableObjectDatatypes - Mojolicious Controller
9 #
10 # SYNOPSIS
11 # ========
12 #
13 #
14 #
15 # DESCRIPTION
16 # ===========
17 #
18 # Daje::Controller::ToolsTableObjectDatatypes is a Mojolicious Controller.
19 #
20 # METHODS
21 # =======
22 #
23 # load_table_objects_datatypes($self)
24 #
25 # LICENSE
26 # =======
27 #
28 # Copyright (C) janeskil1525.
29 #tools_objects_tables_datatypes
30 # This library is free software; you can redistribute it and/or modify
31 # it under the same terms as Perl itself.
32 #
33 # AUTHOR
34 # ======
35 #
36 # janeskil1525 E<lt>janeskil1525@gmail.com
37 #
38 use Data::Dumper;
39  
40 sub load_table_object_datatypes($self) {
41  
42 $self->app->log->debug('Daje::Controller::ToolsTableObjectDatatypes::load_table_object_datatypes');
43 $self->render_later;
44 # my ($companies_pkey, $users_pkey) = $self->jwt->companies_users_pkey(
45 # $self->req->headers->header('X-Token-Check')
46 # );
47  
48 $self->app->log->debug($self->req->headers->header('X-Token-Check'));
49  
50 $self->tools_objects_tables_datatypes->load_tools_objects_tables_datatypes_p()->then(sub($result) {
51 $self->render(json => $result->{data});
52 })->catch(sub($err) {
53 $self->render(json => { result => 0, data => $err });
54 })->wait;
55  
56 }
57  
58 1;
59 #################### pod generated by Pod::Autopod - keep this line to make pod updates possible ####################
60  
61 =head1 NAME
62  
63  
64 Daje::Controller::ToolsTableObjectDatatypes - Mojolicious Controller
65  
66  
67  
68 =head1 SYNOPSIS
69  
70  
71  
72  
73  
74  
75 =head1 DESCRIPTION
76  
77  
78 Daje::Controller::ToolsTableObjectDatatypes is a Mojolicious Controller.
79  
80  
81  
82 =head1 REQUIRES
83  
84 L<Data::Dumper>
85  
86 L<v5.40>
87  
88 L<Mojo::Base>
89  
90  
91 =head1 METHODS
92  
93  
94 load_table_objects_datatypes($self)
95  
96  
97  
98 =head1 AUTHOR
99  
100  
101 janeskil1525 E<lt>janeskil1525@gmail.com
102  
103  
104  
105 =head1 LICENSE
106  
107  
108 Copyright (C) janeskil1525.
109 tools_objects_tables_datatypes
110 This library is free software; you can redistribute it and/or modify
111 it under the same terms as Perl itself.
112  
113  
114  
115 =cut
116