New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write simplify the common process for each request method #15

robario opened this Issue Aug 1, 2013 · 0 comments


None yet
1 participant
Copy link

robario commented Aug 1, 2013

In many cases, prep and view are the same process for each request method.
Currently, there is a need to write it as below.

sub foo { "PROCESS" }
prep process => {
    GET    => \&foo,
    POST   => \&foo,
    PUT    => \&foo,
    DELETE => \&foo,
# or
prep process => {
    GET    => sub { "PROCESS" },
    POST   => sub { "PROCESS" },
    PUT    => sub { "PROCESS" },
    DELETE => sub { "PROCESS" },

@ghost ghost assigned robario Aug 1, 2013

@robario robario closed this in 1ddd18e Sep 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment