post '/subscribe' => sub { if (not validate profile => $validator) { to_json errors; } }; =head1 BUGS AND LIMITATIONS If you find one, please let me know. =hea