v2board/app/Http/Routes/ClientRoute.php

22 lines
557 B
PHP
Raw Normal View History

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-02-02 22:02:55 +08:00
$router->get('/app/data', 'Client\\AppController@data');
$router->get('/app/config', 'Client\\AppController@config');
2020-02-01 20:51:45 +08:00
});
}
}