init
This commit is contained in:
18
Routes/api.php
Normal file
18
Routes/api.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Routing\Router;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group([
|
||||
'middleware' =>config('api.route.middleware_auth'),
|
||||
], function (Router $router) {
|
||||
$router->get('secret', 'SecretController@index');
|
||||
$router->get('secret/qr_code_url', 'SecretController@qrCodeUrl');
|
||||
|
||||
$router->post('secret/open', 'SecretController@open');
|
||||
$router->post('secret/close', 'SecretController@close');
|
||||
/**
|
||||
* 更新密钥
|
||||
*/
|
||||
$router->put('secret', 'SecretController@update');
|
||||
});
|
||||
Reference in New Issue
Block a user