Esempio n. 1
0
// Subscription Routes...
if (count(Spark::plans()) > 0) {
    $router->post('settings/user/plan', 'Settings\\SubscriptionController@subscribe');
    $router->put('settings/user/plan', 'Settings\\SubscriptionController@changeSubscriptionPlan');
    $router->delete('settings/user/plan', 'Settings\\SubscriptionController@cancelSubscription');
    $router->post('settings/user/plan/resume', 'Settings\\SubscriptionController@resumeSubscription');
    $router->put('settings/user/card', 'Settings\\SubscriptionController@updateCard');
    $router->put('settings/user/vat', 'Settings\\SubscriptionController@updateExtraBillingInfo');
    $router->get('settings/user/plan/invoice/{id}', 'Settings\\SubscriptionController@downloadInvoice');
}
// Authentication Routes...
$router->get('login', 'Auth\\AuthController@getLogin');
$router->post('login', 'Auth\\AuthController@postLogin');
$router->get('logout', 'Auth\\AuthController@getLogout');
// Two-Factor Authentication Routes...
if (Spark::supportsTwoFactorAuth()) {
    $router->get('login/token', 'Auth\\AuthController@getToken');
    $router->post('login/token', 'Auth\\AuthController@postToken');
}
// Registration Routes...
$router->get('register', 'Auth\\AuthController@getRegister');
$router->post('register', 'Auth\\AuthController@postRegister');
// Password Routes...
$router->get('password/email', 'Auth\\PasswordController@getEmail');
$router->post('password/email', 'Auth\\PasswordController@postEmail');
$router->get('password/reset/{token}', 'Auth\\PasswordController@getReset');
$router->post('password/reset', 'Auth\\PasswordController@postReset');
// User API Routes...
$router->get('spark/api/users/me', 'API\\UserController@getCurrentUser');
// Team API Routes...
if (Spark::usingTeams()) {