source: trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json.pm @ 2074

Last change on this file since 2074 was 2067, checked in by nanardon, 7 years ago

Avoid more useless sync

File size: 790 bytes
Line 
1package LATMOS::Accounts::Web::Controller::Json;
2use Moose;
3use namespace::autoclean;
4
5BEGIN { extends 'Catalyst::Controller'; }
6
7=head1 NAME
8
9LATMOS::Accounts::Web::Controller::Json - Catalyst Controller
10
11=head1 DESCRIPTION
12
13Catalyst Controller.
14
15=head1 METHODS
16
17=cut
18
19
20=head2 index
21
22=cut
23
24sub index :Path :Args(0) {
25    my ( $self, $c ) = @_;
26
27    $c->response->body('Matched LATMOS::Accounts::Web::Controller::Json in Json.');
28}
29
30sub end : Private {
31    my ( $self, $c ) = @_;
32
33    $c->stash->{NoSync} = 1;
34
35    $c->stash->{data} ||= {};
36    $c->forward($c->view('Json'));
37}
38
39=encoding utf8
40
41=head1 AUTHOR
42
43olivier
44
45=head1 LICENSE
46
47This library is free software. You can redistribute it and/or modify
48it under the same terms as Perl itself.
49
50=cut
51
52__PACKAGE__->meta->make_immutable;
53
541;
Note: See TracBrowser for help on using the repository browser.