Ajoute les 2 controllers et l'authentification

This commit is contained in:
2018-04-26 23:02:06 +02:00
parent 8c48c8daa3
commit 7ebb888bb2
6 changed files with 93 additions and 14 deletions

View File

@@ -13,8 +13,9 @@
/** @var \Laravel\Lumen\Routing\Router $router */
$router->get('/', 'HomeController@home');
$router->post('/register', 'HomeController@iframe');
$router->post('/api/register', 'UsersController@create');
$router->post('/api/{token}', function($token) {
});
$router->post('/api/links', [
'middleware' => 'auth',
'uses' => 'LinksController@add'
]);