Allow users to specify method type for new generated routes

Lotus action generator atm generates routes to controller action with type GET. This might cause inconveniences for users who want different type for the route.

I’d like to propose a new way to let users generate action type with arg --method:

$ lotus generate action <app> <controller>#<action> --method=[GET|PUT|PATCH|POST]

Feedbacks welcome

@trung_le I like it. Please go ahead, just consider to whitelist HTTP methods and to include all the ones that we support with lotus-router.

Thank you.

Solved with