Skip to content

Instantly share code, notes, and snippets.

@eugene-dounar
Created October 1, 2013 15:53
Show Gist options
  • Save eugene-dounar/6780692 to your computer and use it in GitHub Desktop.
Save eugene-dounar/6780692 to your computer and use it in GitHub Desktop.
<?php
/**
* Registration
*/
$app->post('/users/', function (Request $request) use ($app) {
$user = $app->deserialize('Assurant\User', ['Registration']);
$app['users']->register($user);
return $app->serialize($user, 201);
})->before($authenticate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment