Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first commit: resources was generated by Ark's scaffold
- Loading branch information
0 parents
commit beeb647
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use inc::Module::Install; | ||
name 'SimpleLinks-Web'; | ||
all_from 'lib/SimpleLinks/Web.pm'; | ||
|
||
requires 'Ark'; | ||
|
||
tests 't/*.t'; | ||
|
||
build_requires 'Test::More'; | ||
use_test_base; | ||
auto_include; | ||
WriteAll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is Perl application p5-ark-sample-simplelinks (SimpleLinks::Web). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package SimpleLinks::Web; | ||
use Ark; | ||
|
||
our $VERSION = '0.01'; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package SimpleLinks::Web::Controller::Root; | ||
use Ark 'Controller'; | ||
|
||
has '+namespace' => default => ''; | ||
|
||
# default 404 handler | ||
sub default :Path :Args { | ||
my ($self, $c) = @_; | ||
|
||
$c->res->status(404); | ||
$c->res->body('404 Not Found'); | ||
} | ||
|
||
sub index :Path :Args(0) { | ||
my ($self, $c) = @_; | ||
$c->res->body('Ark Default Index'); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
use strict; | ||
use Test::More tests => 1; | ||
|
||
BEGIN { use_ok 'SimpleLinks::Web' } |