2020-02-01 20:51:45 +08:00
|
|
|
<?php
|
|
|
|
namespace App\Http\Routes;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Routing\Registrar;
|
|
|
|
|
|
|
|
class ClientRoute
|
|
|
|
{
|
|
|
|
public function map(Registrar $router)
|
|
|
|
{
|
|
|
|
$router->group([
|
|
|
|
'prefix' => 'client',
|
|
|
|
'middleware' => 'client'
|
|
|
|
], function ($router) {
|
2020-02-02 21:59:12 +08:00
|
|
|
// Client
|
2020-02-02 22:02:55 +08:00
|
|
|
$router->get('/subscribe', 'Client\\ClientController@subscribe');
|
2020-02-02 21:59:12 +08:00
|
|
|
// App
|
2020-07-04 17:09:57 +08:00
|
|
|
$router->get('/app/getConfig', 'Client\\AppController@getConfig');
|
|
|
|
$router->get('/app/getVersion', 'Client\\AppController@getVersion');
|
2020-02-01 20:51:45 +08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|