|
Revision 17627, 1.0 kB
(checked in by tokuhirom, 5 years ago)
|
|
use HTTP::Engine::Compat
|
| Line | |
|---|
| 1 | package Ulgori; |
|---|
| 2 | use strict; |
|---|
| 3 | use warnings; |
|---|
| 4 | use 5.00800; |
|---|
| 5 | our $VERSION = '0.01'; |
|---|
| 6 | use Ulgori::Web::Handler; |
|---|
| 7 | use Ulgori::Config; |
|---|
| 8 | use Ulgori::ComponentManager::Singleton; |
|---|
| 9 | |
|---|
| 10 | use HTTP::Engine::Compat middlewares => [ |
|---|
| 11 | qw/ |
|---|
| 12 | ModuleReload |
|---|
| 13 | DebugScreen |
|---|
| 14 | DoCoMoGUID |
|---|
| 15 | MobileAttribute |
|---|
| 16 | +Ulgori::Web::Middleware::Encoding |
|---|
| 17 | +Ulgori::Web::Middleware::FragileAuth |
|---|
| 18 | / |
|---|
| 19 | ]; |
|---|
| 20 | |
|---|
| 21 | sub bootstrap { |
|---|
| 22 | Ulgori::ComponentManager::Singleton->get( 'Model::Log' ); # preload. |
|---|
| 23 | |
|---|
| 24 | my $cfg = Ulgori::Config->instance; |
|---|
| 25 | |
|---|
| 26 | HTTP::Engine->new( |
|---|
| 27 | interface => { |
|---|
| 28 | %{ $cfg->{Engine} }, |
|---|
| 29 | request_handler => \&Ulgori::Web::Handler::handler, |
|---|
| 30 | }, |
|---|
| 31 | )->run; |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | 1; |
|---|
| 35 | __END__ |
|---|
| 36 | |
|---|
| 37 | =encoding utf8 |
|---|
| 38 | |
|---|
| 39 | =head1 NAME |
|---|
| 40 | |
|---|
| 41 | Ulgori - |
|---|
| 42 | |
|---|
| 43 | =head1 SYNOPSIS |
|---|
| 44 | |
|---|
| 45 | use Ulgori; |
|---|
| 46 | |
|---|
| 47 | =head1 DESCRIPTION |
|---|
| 48 | |
|---|
| 49 | Ulgori is |
|---|
| 50 | |
|---|
| 51 | =head1 TODO |
|---|
| 52 | |
|---|
| 53 | no plan :-) |
|---|
| 54 | |
|---|
| 55 | =head1 AUTHOR |
|---|
| 56 | |
|---|
| 57 | Tokuhiro Matsuno E<lt>tokuhirom@gmail.comE<gt> |
|---|
| 58 | |
|---|
| 59 | =head1 SEE ALSO |
|---|
| 60 | |
|---|
| 61 | =head1 LICENSE |
|---|
| 62 | |
|---|
| 63 | This library is free software; you can redistribute it and/or modify |
|---|
| 64 | it under the same terms as Perl itself. |
|---|
| 65 | |
|---|
| 66 | =cut |
|---|