14 lines
439 B
PHP
14 lines
439 B
PHP
<?php
|
|
|
|
use Illuminate\Routing\Router;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::group([
|
|
'prefix' => 'user',
|
|
'middleware' => config('api.route.middleware_auth'),
|
|
], function (Router $router) {
|
|
$router->get('search', 'UserController@search');
|
|
$router->put('setting/{field}', 'UserController@setting');
|
|
$router->put('privacy', 'UserController@privacy');
|
|
$router->get('download', 'UserController@download');
|
|
}); |