Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created July 18, 2022 14:38
Show Gist options
  • Save jjn1056/3cf821a24e0b1c1a4c38e2e5cf4c8754 to your computer and use it in GitHub Desktop.
Save jjn1056/3cf821a24e0b1c1a4c38e2e5cf4c8754 to your computer and use it in GitHub Desktop.
package MyApp::Controller::Account;
sub update_account
:Does(RequestModel)
:RequestModel(AccountRequest)
:Does(RenderErrors)
:Errors(BadCSRFToken, InvalidJSON)
($self, $c, $request)
{
## etc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment