Skip to content

Commit

Permalink
[Perl] Add Kossy (#6774)
Browse files Browse the repository at this point in the history
* [Perl] Add Kossy

* Update perl/kossy/config.yaml

Co-authored-by: Marwan Rabbâa <[email protected]>

* Update perl/kossy/cpanfile

Co-authored-by: Marwan Rabbâa <[email protected]>

---------

Co-authored-by: Marwan Rabbâa <[email protected]>
  • Loading branch information
kfly8 and waghanza authored Oct 5, 2023
1 parent e4bcf75 commit 7112a9c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perl/kossy/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
framework:
github: kazeburo/Kossy
version: 0.60
2 changes: 2 additions & 0 deletions perl/kossy/cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requires 'Kossy', '>= 0.60, < 0.61';
requires 'Gazelle';
17 changes: 17 additions & 0 deletions perl/kossy/d2app.psgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use v5.38;

use Kossy;

get '/' => sub ($self, $c) {
$c->halt_text(200, '');
};

get '/user/:id' => sub ($self, $c) {
$c->halt_text(200, $c->args->{'id'});
};

post '/user' => sub ($self, $c) {
$c->halt_text(200, '');
};

__PACKAGE__->psgi;

0 comments on commit 7112a9c

Please sign in to comment.