mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-23 19:24:03 +01:00
44 lines
1.0 KiB
PHP
44 lines
1.0 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace CachetHQ\Cachet\Http\Routes;
|
|
|
|
use Illuminate\Contracts\Routing\Registrar;
|
|
|
|
/**
|
|
* This is the signup routes class.
|
|
*
|
|
* @author Joseph Cohen <joe@alt-three.com>
|
|
*/
|
|
class SignupRoutes
|
|
{
|
|
/**
|
|
* Define the signup routes.
|
|
*
|
|
* @param \Illuminate\Contracts\Routing\Registrar $router
|
|
*
|
|
* @return void
|
|
*/
|
|
public function map(Registrar $router)
|
|
{
|
|
$router->group(['middleware' => ['web', 'ready', 'guest'], 'as' => 'signup.'], function (Registrar $router) {
|
|
$router->get('signup/invite/{code}', [
|
|
'as' => 'invite',
|
|
'uses' => 'SignupController@getSignup',
|
|
]);
|
|
|
|
$router->post('signup/invite/{code}', [
|
|
'uses' => 'SignupController@postSignup',
|
|
]);
|
|
});
|
|
}
|
|
}
|